Skip to content

Commit

Permalink
Less minimization in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkelM committed Oct 28, 2024
1 parent 9521eca commit ebb4266
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions webpack.dev.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -16,6 +24,10 @@ module.exports = env => {
return merge(common(env), {
mode,
devtool,
optimization
optimization,
output: {
filename: '[name].js',
chunkFilename: '[name].js'
}
});
};

0 comments on commit ebb4266

Please sign in to comment.