Skip to content

Commit

Permalink
frontend: Optimize production builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dasJ committed Jun 11, 2024
1 parent 11c8977 commit 6bb1256
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const {CleanWebpackPlugin} = require('clean-webpack-plugin');


module.exports = (withDebug) => {
module.exports = (withDebug, optimize) => {
return {
entry: './src/index.js',
output: {
Expand Down Expand Up @@ -45,7 +45,7 @@ module.exports = (withDebug) => {
options: {
// add Elm's debug overlay to output
debug: withDebug,
optimize: false
optimize: optimize,
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion frontend/config/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ const dev = {

module.exports = env => {
const withDebug = !env.nodebug;
return merge(common(withDebug), dev);
return merge(common(withDebug, false), dev);
}
2 changes: 1 addition & 1 deletion frontend/config/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ const prod = {

};

module.exports = merge(common(false), prod);
module.exports = merge(common(false, true), prod);

0 comments on commit 6bb1256

Please sign in to comment.