Socket
Socket
Sign inDemoInstall

mini-css-extract-plugin

Package Overview
Dependencies
78
Maintainers
3
Versions
77
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.7.1 to 2.7.2

2

dist/index.js

@@ -727,3 +727,3 @@ "use strict";

}
return Template.asString([`var createStylesheet = ${runtimeTemplate.basicFunction("chunkId, fullhref, oldTag, resolve, reject", ['var linkTag = document.createElement("link");', this.runtimeOptions.attributes ? Template.asString(Object.entries(this.runtimeOptions.attributes).map(entry => {
return Template.asString(['if (typeof document === "undefined") return;', `var createStylesheet = ${runtimeTemplate.basicFunction("chunkId, fullhref, oldTag, resolve, reject", ['var linkTag = document.createElement("link");', this.runtimeOptions.attributes ? Template.asString(Object.entries(this.runtimeOptions.attributes).map(entry => {
const [key, value] = entry;

@@ -730,0 +730,0 @@ return `linkTag.setAttribute(${JSON.stringify(key)}, ${JSON.stringify(value)});`;

{
"name": "mini-css-extract-plugin",
"version": "2.7.1",
"version": "2.7.2",
"description": "extracts CSS into separate files",

@@ -65,3 +65,3 @@ "license": "MIT",

"cross-env": "^7.0.3",
"cspell": "^6.14.3",
"cspell": "^6.16.0",
"css-loader": "^6.7.0",

@@ -71,3 +71,3 @@ "del": "^6.0.0",

"es-check": "^7.0.1",
"eslint": "^8.26.0",
"eslint": "^8.29.0",
"eslint-config-prettier": "^8.5.0",

@@ -74,0 +74,0 @@ "eslint-plugin-import": "^2.25.4",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc