css-hot-loader
Advanced tools
Comparing version 1.3.8 to 1.3.9
@@ -0,1 +1,5 @@ | ||
### 1.3.9 2018-03-27 | ||
- fix: Webpack 4 compatibility fix by @vagusX [!39](https://github.com/shepherdwind/css-hot-loader/pull/39) | ||
### 1.3.8 2018-03-01 | ||
@@ -2,0 +6,0 @@ |
@@ -0,1 +1,2 @@ | ||
const path = require('path'); | ||
const loaderUtils = require('loader-utils'); | ||
@@ -16,3 +17,3 @@ const defaultOptions = { | ||
// ${Date.now()} | ||
var cssReload = require(${loaderUtils.stringifyRequest(this, require.resolve('./hotModuleReplacement'))})(module.id, ${JSON.stringify(options)}); | ||
var cssReload = require(${loaderUtils.stringifyRequest(this, '!' + path.join(__dirname, 'hotModuleReplacement.js'))})(module.id, ${JSON.stringify(options)}); | ||
module.hot.dispose(cssReload); | ||
@@ -19,0 +20,0 @@ module.hot.accept(undefined, cssReload); |
{ | ||
"name": "css-hot-loader", | ||
"version": "1.3.8", | ||
"version": "1.3.9", | ||
"description": "css hot reload work with extract-text-webpack-plugin", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -18,3 +18,3 @@ ### CSS Hot Loader | ||
This is a css hot loader, which supprot hot module replacement for an extracted css file. | ||
This is a css hot loader, which support hot module replacement for an extracted css file. | ||
@@ -21,0 +21,0 @@ ### Why we need css hot loader |
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
11318
126