Skip to content

Commit

Permalink
fix: do not minify assets in public by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia committed Nov 7, 2023
1 parent 4a7340a commit e6a229f
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 e6a229f

Please sign in to comment.