Munter / express-compile-sass

Express middleware to compile sass in the HTTP stream
15 stars 3 forks source link

Importing SCSS files from node_modules #294

Open OmerFlame opened 5 years ago

OmerFlame commented 5 years ago

I want to compile SCSS files that also have @import statements in them, and they lead to node modules that I installed, that also include SCSS files (a UI Framework). When I try to run the code, it tells me it failed to find my import, when I know it's there. Another thing, is that the framework imports some of its own components, and thus the compiler fails, EVEN IF I write the entire path to node_modules. HELP ME ASAP PLEASE

creaux commented 5 years ago

In relation to this issue. Is there a way how to pass options onto node-sass? In that case following package would be the solution.

https://github.com/maoberlehner/node-sass-magic-importer/tree/master/packages/node-sass-package-importer.