From ebb426601c1f7fd4714af0c149730994db061e02 Mon Sep 17 00:00:00 2001 From: NikkelM <57323886+NikkelM@users.noreply.github.com> Date: Mon, 28 Oct 2024 19:57:17 +0000 Subject: [PATCH] Less minimization in dev mode --- webpack.dev.cjs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/webpack.dev.cjs b/webpack.dev.cjs index bf1a63af..ccd1b6a3 100644 --- a/webpack.dev.cjs +++ b/webpack.dev.cjs @@ -5,7 +5,15 @@ module.exports = env => { let mode = "development"; let devtool = 'inline-source-map'; let optimization = { - minimize: false + minimize: false, + concatenateModules: false, + flagIncludedChunks: false, + mergeDuplicateChunks: false, + removeAvailableModules: false, + removeEmptyChunks: false, + sideEffects: false, + providedExports: false, + usedExports: false, }; env.mode = mode; @@ -16,6 +24,10 @@ module.exports = env => { return merge(common(env), { mode, devtool, - optimization + optimization, + output: { + filename: '[name].js', + chunkFilename: '[name].js' + } }); }; \ No newline at end of file