尝试在我的SailsJS应用程序中使用与Bootstrap不同的字体
在我的layout.ejs
<link href='https://fonts.googleapis.com/css?family=Jura:500|Open+Sans:400,300' rel='stylesheet' type='text/css'>
在我的importer.less
@import url(https://fonts.googleapis.com/css?family=Jura:500|Open+Sans:400,300);
和
h1, h2, h3, h4, h5, h6 {
font-family: 'Jura', sans-serif;
}
资产在本地正确编译,但在部署到Heroku时,字体不适用。
有关如何排除故障的任何指示?
Running tasks: less
Running "less" task
Running "less:dev" (less) task
Verifying property less.dev exists in config...OK
Files: assets/styles/importer.less -> .tmp/public/styles/importer.css
Options: banner=""
Reading assets/styles/importer.less...OK
Writing .tmp/public/styles/importer.css...OK
File .tmp/public/styles/importer.css created
>> 1 stylesheet created.
Done, without errors.