node-sass-magic-importer icon indicating copy to clipboard operation
node-sass-magic-importer copied to clipboard

Support for ordering the imports when globbing

Open wokung opened this issue 6 years ago • 1 comments

Hello,

can you implement the possibility to give the import files an order?

I am migrating an old project and there, the ordering of the imported css files are important, since the possibility of css overriding some rules I am not aware of.

However, I tried this importer and it loads all the css files in alphabetical order?

thanks

wokung avatar Apr 09 '20 13:04 wokung

If you need files imported in a specific order, globbing doesn't really make sense. Instead just use an _index.scss file instead with the specific order listed in it and import the folder path where it resides and Sass will automatically find the _index.scss and import in the order you need.

Ambient-Impact avatar Nov 13 '21 17:11 Ambient-Impact