Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jrencz opened this issue Jan 25, 2017 · 2 comments

Comments

@jrencz
Copy link

jrencz commented Jan 25, 2017

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

@Aintaer
Copy link
Owner

Aintaer commented Jan 26, 2017

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

@donquixote
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants