mini-css-extract-plugin
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -725,2 +725,5 @@ "use strict"; | ||
const undoPath = (0, _identifier.getUndoPath)(filename, compiler.outputPath, false); | ||
content = content.replace(new RegExp(_utils.ABSOLUTE_PUBLIC_PATH, "g"), ""); | ||
content = content.replace(new RegExp(_utils.SINGLE_DOT_PATH_SEGMENT, "g"), "."); | ||
content = content.replace(new RegExp(_utils.DOUBLE_DOT_PATH_SEGMENT, "g"), ".."); | ||
content = content.replace(new RegExp(_utils.AUTO_PUBLIC_PATH, "g"), undoPath); | ||
@@ -727,0 +730,0 @@ |
@@ -173,8 +173,10 @@ "use strict"; | ||
const isAbsolutePublicPath = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(publicPath); | ||
const publicPathForExtract = isAbsolutePublicPath ? publicPath : `${_utils.ABSOLUTE_PUBLIC_PATH}${publicPath.replace(/\./g, _utils.SINGLE_DOT_PATH_SEGMENT).replace(/\.\./g, _utils.DOUBLE_DOT_PATH_SEGMENT)}`; | ||
this.importModule(`${this.resourcePath}.webpack[javascript/auto]!=!${request}`, { | ||
layer: options.layer, | ||
publicPath | ||
}, (err, exports) => { | ||
if (err) { | ||
callback(err); | ||
publicPath: publicPathForExtract | ||
}, (error, exports) => { | ||
if (error) { | ||
callback(error); | ||
return; | ||
@@ -181,0 +183,0 @@ } |
@@ -11,3 +11,3 @@ "use strict"; | ||
exports.stringifyRequest = stringifyRequest; | ||
exports.AUTO_PUBLIC_PATH = exports.MODULE_TYPE = void 0; | ||
exports.DOUBLE_DOT_PATH_SEGMENT = exports.SINGLE_DOT_PATH_SEGMENT = exports.ABSOLUTE_PUBLIC_PATH = exports.AUTO_PUBLIC_PATH = exports.MODULE_TYPE = void 0; | ||
@@ -75,4 +75,10 @@ var _module = _interopRequireDefault(require("module")); | ||
exports.MODULE_TYPE = MODULE_TYPE; | ||
const AUTO_PUBLIC_PATH = "__MINI_CSS_EXTRACT_PLUGIN_PUBLIC_PATH__"; | ||
const AUTO_PUBLIC_PATH = "__mini_css_extract_plugin_public_path_auto__"; | ||
exports.AUTO_PUBLIC_PATH = AUTO_PUBLIC_PATH; | ||
const ABSOLUTE_PUBLIC_PATH = "webpack:///mini-css-extract-plugin/"; | ||
exports.ABSOLUTE_PUBLIC_PATH = ABSOLUTE_PUBLIC_PATH; | ||
const SINGLE_DOT_PATH_SEGMENT = "__mini_css_extract_plugin_single_dot_path_segment__"; | ||
exports.SINGLE_DOT_PATH_SEGMENT = SINGLE_DOT_PATH_SEGMENT; | ||
const DOUBLE_DOT_PATH_SEGMENT = "__mini_css_extract_plugin_double_dot_path_segment__"; | ||
exports.DOUBLE_DOT_PATH_SEGMENT = DOUBLE_DOT_PATH_SEGMENT; | ||
@@ -79,0 +85,0 @@ function isAbsolutePath(str) { |
{ | ||
"name": "mini-css-extract-plugin", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "extracts CSS into separate files", | ||
@@ -59,3 +59,3 @@ "license": "MIT", | ||
"cross-env": "^7.0.3", | ||
"css-loader": "^5.2.6", | ||
"css-loader": "^6.2.0", | ||
"del": "^6.0.0", | ||
@@ -62,0 +62,0 @@ "del-cli": "^4.0.0", |
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
82653
1295