diff --git a/src/hotLoader.js b/src/hotLoader.js index a0bd4720..c7c0364c 100644 --- a/src/hotLoader.js +++ b/src/hotLoader.js @@ -18,7 +18,7 @@ module.exports = function (content) { return content + ` if(module.hot) { // ${Date.now()} - var cssReload = require(${loaderUtils.stringifyRequest(this, '!' + path.join(__dirname, 'hotModuleReplacement.js'))})(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); ${accept}; }