Skip to content

Commit

Permalink
feat: add minify
Browse files Browse the repository at this point in the history
  • Loading branch information
HomyeeKing committed Jan 15, 2025
1 parent d6d3f04 commit d44c87e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ice/src/service/webpackServerCompiler/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class WebpackServerCompiler {
},
},
},
minimize: false,
minimize: true,
minimizer: [
new TerserPlugin({
extractComments: false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default function (source) {
const result = source.replace(/webpackChunkName:\s*["'][^"']+["']/g, '');
const result = source.replace(/webpackChunkName:\s*["'][^"']+["']/g, 'webpackMode: "eager"');

// Return the modified source
return result;
Expand Down

0 comments on commit d44c87e

Please sign in to comment.