Skip to content

Commit

Permalink
fix: do not minify assets in public by default (#6631)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia authored Nov 8, 2023
1 parent e678188 commit 52eb7a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-coins-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ice/webpack-config': patch
---

fix: do not minify assets in public by default
4 changes: 4 additions & 0 deletions packages/webpack-config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ export function getWebpackConfig(options: GetWebpackConfigOptions): Configuratio
// ignore assets already in compilation.assets such as js and css files
force: false,
noErrorOnMissing: true,
// Skip minimization by default.
info: {
minimized: true,
},
globOptions: {
dot: true,
gitignore: true,
Expand Down

0 comments on commit 52eb7a4

Please sign in to comment.