From 9a58b500bae8925406cc664bce5ced39dddf3630 Mon Sep 17 00:00:00 2001 From: cha0s Date: Wed, 10 Jan 2024 12:44:49 -0600 Subject: [PATCH] fix: HMR --- packages/web/src/server/build/web.webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/src/server/build/web.webpack.config.js b/packages/web/src/server/build/web.webpack.config.js index 33016e9..ef428f4 100644 --- a/packages/web/src/server/build/web.webpack.config.js +++ b/packages/web/src/server/build/web.webpack.config.js @@ -83,7 +83,7 @@ module.exports = async (env, argv, flecks) => { const styleChunk = Array.from(compilation.chunks).find((chunk) => ( chunk.chunkReason?.match(/split chunk \(cache group: styles\)/) )); - if (styleChunk) { + if (isProduction && styleChunk) { for (let i = 0; i < assets.css.length; ++i) { const asset = compilation.assets[assets.css[i].substring(1)]; if (asset) {