[英]Importing npm .scss into Meteor App
我安装了meteorhacks:npm和fourseven:scss在我的Meteor应用程序中有npm和scss,它运行正常。 我已经通过npm安装了Bourbon,但我无法弄清楚如何将它导入我的.scss
我试过@import '/node_modules/bourbon/app/assets/stylesheets/_bourbon.scss';
并得到以下错误:
While processing files with fourseven:scss (for target
web.browser):
/simple-todos-angular.scss: Scss compiler error: File to
import:
/node_modules/bourbon/app/assets/stylesheets/_bourbon.scss
not found in file:
/Users/ChrisWilliams/sites/other_sites/simple-todos-angular/{}/simple-todos-angular.scss
任何想法都会很棒,谢谢!
找到了解决方案。 只需将以下内容添加到项目中:
meteor npm install --save tether
流星添加fourseven:scss
meteor-add-orgztion:meteor-global-tether
使用最新版本的Meteor。
$ cat .meteor / release
METEOR@1.4.2.3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.