maoberlehner / node-sass-magic-importer

Custom node-sass importer for selector specific imports, module importing, globbing support and importing files only once.
MIT License
292 stars 28 forks source link

Support webpack aliases #190

Closed crashtimer closed 5 years ago

crashtimer commented 5 years ago

Hi. I'm facing with a problem when I am using aliases in webpack and your library. It works fine with default sass-loader, but doesn't when I user node-sass-magic-importer. And this import throws an error: @import ~apps/APP_NAME/style.scss where is '~apps' = 'src/apps/' Can it be fixed? Appreciate your efforts, thanks.

maoberlehner commented 5 years ago

Hi! The ~ prefix is intended to be used for importing packages from node_modules. I guess you have to use a different prefix. But I don't have any experience with using aliases in combination with node-sass-magic-importer.