From 8206b3d789f6acc0da51fa0cb9a39e38bbe23681 Mon Sep 17 00:00:00 2001 From: gcoadour <47463874+gcoadour@users.noreply.github.com> Date: Fri, 21 Jun 2019 11:12:03 +0200 Subject: [PATCH 1/2] Update loader.js --- src/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loader.js b/src/loader.js index a91dd787..07d1a8ed 100644 --- a/src/loader.js +++ b/src/loader.js @@ -181,7 +181,7 @@ export function pitch(request) { return callback(e); } - let resultSource = `// extracted by ${pluginName}`; + let resultSource = `/* extracted by ${pluginName}*/`; const result = locals ? `\nmodule.exports = ${JSON.stringify(locals)};` : ''; From 3b88546dd321535ed98b4c92ef3c74b6ddb5c22d Mon Sep 17 00:00:00 2001 From: gcoadour <47463874+gcoadour@users.noreply.github.com> Date: Mon, 26 Aug 2019 10:55:25 +0200 Subject: [PATCH 2/2] Update result Update result of the test due to the modification of loader.js --- test/cases/hmr/expected/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cases/hmr/expected/main.js b/test/cases/hmr/expected/main.js index 0b125150..ef2d42f3 100644 --- a/test/cases/hmr/expected/main.js +++ b/test/cases/hmr/expected/main.js @@ -88,9 +88,9 @@ /* 0 */ /***/ (function(module, exports, __webpack_require__) { -// extracted by mini-css-extract-plugin +/* extracted by mini-css-extract-plugin*/ if(false) { var cssReload; } /***/ }) -/******/ ]); \ No newline at end of file +/******/ ]);