Instead of inlining css within sass, I attempted to utilize the npm package Node Sass CSS importer. Unfortunately, I am struggling to get it to function properly.
I typically use npm as my build tool:
"build:css": "node-sass some_path/style.scss some_path/css/glamos.min.css",
What changes do I need to make? My initial adjustment was something like:
"build:css": "node-sass some_path/style.scss some_path/css/glamos.min.css --importer node-sass-css-importer",
After running npm run build:css
, I encountered the following error message:
Error: Cannot find module 'path_to_repo/CssImporter'
How should I reconfigure this setup?