import-glob-loader
import-glob-loader copied to clipboard
Question: does import-glob-loader work similar to node-sass-globbing importer?
I'm setting up a bunch of projects:
- all of the projects that have any styles ahve sass sources and use node-sass to compile them
- most of the project use webpack so it's natural for me to choose import-glob-loader
- some projects don't use webpack and I already have working setup with
britco/node-sass-globbing
as node-sass importer
After analysing the source code of both projects it looks like they do more or less the same: they turn single import line to multiple lines expanded by node-glob
My question is: @Aintaer were you aware of existence of node-sass-globbing at the time this project was started? If so: what is the advantage of using loader rather than importer right in node-sass?
I'm not yet proficient in WebPack so I'm not able to answer the 2nd part of the question myself
I was not aware of node-sass-globbing
. But I can tell you that this plugin is a dead simple fs listing and expansion. It doesn't engage the underlying webpack loaders (namely Sass).
One difference might be support for recursive globbing, see #6.