Skip to content

[1.3] Style files imports from node_modules #6037

@juliancwirko

Description

@juliancwirko

How to import .scss files located in the installed npm package (in node_modules). For example I do:

npm install foundation-sites --save

And now I want to import .scss files from node_modules/foundation-sites
I mean something like (in main.scss in the app):

@import 'foundation-sites/scss/foundation.scss';

I've tried many combinations, like {}/node_modules/foundation-sites... , {}/foundation-sites..., /node_modules/foundation-sites..., etc.

Nothing works with fourseven:scss.

Do we have a solution for this in Meteor 1.3? I gues that node_modules is ignored so .scss compiler doesn't see the files. I think this is the use case when compiler should see node_modules folder.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions