Chris Williams
Chris Williams

Reputation: 432

Importing npm .scss into Meteor App

I've installed meteorhacks:npm and fourseven:scss to have npm and scss in my Meteor app and it's working fine. I've installed Bourbon via npm, but I can't figure out how to import it into my .scss

I've tried @import '/node_modules/bourbon/app/assets/stylesheets/_bourbon.scss'; and get the following error:

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

Any ideas would be great, thanks!

Upvotes: 3

Views: 281

Answers (1)

Paul Saladna
Paul Saladna

Reputation: 26

Found the fix. Just add the following to your project:

meteor npm install --save tether
meteor add fourseven:scss
meteor add orgztion:meteor-global-tether

Works with the latest version of Meteor.
$ cat .meteor/release
[email protected]

Upvotes: 1

Related Questions