We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b116312 commit 25668baCopy full SHA for 25668ba
src/index.js
@@ -433,7 +433,17 @@ class ExtractCssChunks {
433
node.use.unshift(this.hotLoaderObject);
434
}
435
436
+ if (node && node.loader && Array.isArray(node.loader)) {
437
+ const isMiniCss = node.loader.some((l) => {
438
+ const needle = l.loader || l;
439
+ return needle.includes(pluginName);
440
+ });
441
+ if (isMiniCss) {
442
+ node.loader.unshift(this.hotLoaderObject);
443
+ }
444
445
});
446
+
447
rules.push(rule);
448
449
return rules;
0 commit comments