From 3a4cb53535960fde7ffcaeefc1bf9ca5dadfd5da Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Fri, 26 Jan 2018 20:18:30 +0100 Subject: [PATCH] fix(index): enable HMR in case `locals` (`css-modules`) are unchanged (#298) --- index.js | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 0179a4c0..05c16f93 100644 --- a/index.js +++ b/index.js @@ -23,13 +23,22 @@ module.exports.pitch = function (request) { "// Hot Module Replacement", "if(module.hot) {", " // When the styles change, update the