mini-css-extract-plugin
Advanced tools
Comparing version 2.7.1 to 2.7.2
@@ -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", |
112442