Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

windicss-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

windicss-webpack-plugin - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

19

dist/loaders/pitcher.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc