windicss-webpack-plugin
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -21,16 +21,17 @@ "use strict"; | ||
if (remainingRequest.indexOf('&type=style') > 0) { | ||
// remove all instances of this loader | ||
let templateLoaderIndex, templateLoader; | ||
while ((templateLoaderIndex = this.loaders.findIndex(isTemplateLoader)) !== -1) { | ||
templateLoader = this.loaders[templateLoaderIndex]; | ||
this.loaders.splice(templateLoaderIndex, 1); | ||
} | ||
let insertIndex = this.loaders.findIndex(postCSSLoader) + 1; | ||
let insertIndex = this.loaders.findIndex(postCSSLoader); | ||
// just in-case they don't have post-css for whatever reason we also search for the css-loader | ||
if (insertIndex === -1) { | ||
insertIndex = this.loaders.findIndex(cssLoader) + 1; | ||
insertIndex = this.loaders.findIndex(cssLoader); | ||
} | ||
// insert in our loader at the right spot | ||
if (insertIndex !== -1) { | ||
this.loaders.splice(insertIndex, 0, templateLoader); | ||
// remove all instances of the template-loader | ||
let templateLoaderIndex, templateLoader; | ||
while ((templateLoaderIndex = this.loaders.findIndex(isTemplateLoader)) !== -1) { | ||
templateLoader = this.loaders[templateLoaderIndex]; | ||
this.loaders.splice(templateLoaderIndex, 1); | ||
} | ||
// re-insert the template-loader in the right spot | ||
this.loaders.splice(insertIndex + 1, 0, templateLoader); | ||
} | ||
@@ -37,0 +38,0 @@ } |
{ | ||
"name": "windicss-webpack-plugin", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30502
517