How do I add a assets/fonts folder to precompile?
I currently have the following:
config.assets.precompile += %w( saas_admin.css saas_admin.js stripe_form.js fonts)
which isn't working, am I supposed to put assets/fonts instead?
mystyle.css.erb
@font-face {
font-family: 'SourceSansPro-Regular';
src: url('SourceSansPro-Regular.eot?') format('eot'),
url('SourceSansPro-Regular.otf') format('opentype'),
url('SourceSansPro-Regular.woff') format('woff'),
url('SourceSansPro-Regular.ttf') format('truetype'),
url('SourceSansPro-Regular.svg#SourceSansPro-Regular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face{
font-family: 'MyriadProRegular';
src: url('myriadpro-regular-webfont.eot');
src: local('?'), url('myriadpro-regular-webfont.woff') format('woff'),
url('myriadpro-regular-webfont.ttf') format('truetype'),
url('myriadpro-regular-webfont.svg#webfont8y9VojoZ') format('svg');
font-weight: normal;
font-style: normal;
}
Please help!