style-loader
Advanced tools
Comparing version 0.18.1 to 0.18.2
@@ -5,2 +5,13 @@ # Change Log | ||
<a name="0.18.2"></a> | ||
## [0.18.2](https://github.com/webpack/style-loader/compare/v0.18.1...v0.18.2) (2017-06-05) | ||
### Bug Fixes | ||
* **url:** use `loaderUtils.stringifyRequest` to avoid invalidating hashes due to absolute paths ([#242](https://github.com/webpack/style-loader/issues/242)) ([97508ec](https://github.com/webpack/style-loader/commit/97508ec)) | ||
* Add `null` check to `removeStyleElement` ([#245](https://github.com/webpack/style-loader/issues/245)) ([0a4845c](https://github.com/webpack/style-loader/commit/0a4845c)) | ||
<a name="0.18.1"></a> | ||
@@ -7,0 +18,0 @@ ## [0.18.1](https://github.com/webpack/style-loader/compare/v0.18.0...v0.18.1) (2017-05-23) |
@@ -169,6 +169,6 @@ /* | ||
function removeStyleElement (style) { | ||
if (style.parentNode === null) return false; | ||
style.parentNode.removeChild(style); | ||
var idx = stylesInsertedAtTop.indexOf(style); | ||
if(idx >= 0) { | ||
@@ -175,0 +175,0 @@ stylesInsertedAtTop.splice(idx, 1); |
{ | ||
"name": "style-loader", | ||
"version": "0.18.1", | ||
"version": "0.18.2", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -22,9 +22,9 @@ "description": "style loader module for webpack", | ||
"devDependencies": { | ||
"css-loader": "^0.28.1", | ||
"css-loader": "^0.28.3", | ||
"file-loader": "^0.11.1", | ||
"jsdom": "^9.12.0", | ||
"memory-fs": "^0.4.1", | ||
"mocha": "^3.2.0", | ||
"mocha": "^3.4.2", | ||
"standard-version": "^4.0.0", | ||
"webpack": "^2.2.1" | ||
"webpack": "^2.6.1" | ||
}, | ||
@@ -31,0 +31,0 @@ "scripts": { |
@@ -21,3 +21,3 @@ /* | ||
"// style-loader: Adds some reference to a css file to the DOM by adding a <link> tag", | ||
"var update = require(" + JSON.stringify("!" + path.join(__dirname, "lib", "addStyleUrl.js")) + ")(", | ||
"var update = require(" + loaderUtils.stringifyRequest(this, "!" + path.join(__dirname, "lib", "addStyleUrl.js")) + ")(", | ||
"\trequire(" + loaderUtils.stringifyRequest(this, "!!" + request) + ")", | ||
@@ -24,0 +24,0 @@ ", " + JSON.stringify(options) + ");", |
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
34870
525