Aintaer / import-glob-loader

Globbing preloader for Webpack
50 stars 16 forks source link

glob imports on imported files as well #6

Open gforcada opened 7 years ago

gforcada commented 7 years ago

I spend nearly two hours trying to figure out why import-glob-loader was not working for me, it turns out that having this structure does not work:

webpack.js

require('style!css!sass!import-glob!foo/bar.scss')
bar.scss

@import "more_foo"
more_foo.scs

@import "stuff/*"

Should that be documented on the README or rather it should be fixed?

Aintaer commented 7 years ago

It ought to work but I'll have to take a look

EBMike commented 7 years ago

I'm glad I saw this issue, I've spent an hour trying to figure out why my imported file was not globbing correctly.

renegus commented 7 years ago

+1 I'm having the same issue

DmitryTurovtsov commented 7 years ago

+1

Kcharle commented 7 years ago

So what is the fix? I can't figure out how to get this working with laravel webpack

MXTcomunica commented 6 years ago

Same issue here: "child" @import within subfolder does not work.

jfleblanc commented 6 years ago

+1

donquixote commented 4 years ago

This does work with 'node-sass-globbing' and gulp.

From my current understanding, node-sass-globbing is not working with webpack?