import-glob-loader icon indicating copy to clipboard operation
import-glob-loader copied to clipboard

Question: does import-glob-loader work similar to node-sass-globbing importer?

Open jrencz opened this issue 8 years ago • 2 comments

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

jrencz avatar Jan 25 '17 11:01 jrencz

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).

Aintaer avatar Jan 26 '17 23:01 Aintaer

One difference might be support for recursive globbing, see #6.

donquixote avatar Jan 27 '20 11:01 donquixote