Now the minify feature only accepts no_mange and sequences config
We need to expose all swc minify , so user can control all of them. This will help us adapt to terser-webpack-plugin
Also need to update:
|
.minify_type(if *minify.await? { |
|
.minify_type(if mode.is_production() && *minify.await? { |
https://github.com/utooland/utoo/blob/next/packages/pack-shared/src/webpackCompat.ts
Now the minify feature only accepts no_mange and sequences config
We need to expose all swc minify , so user can control all of them. This will help us adapt to terser-webpack-plugin
Also need to update:
utoo/crates/pack-core/src/server/contexts.rs
Line 418 in eb6d903
utoo/crates/pack-core/src/library/contexts.rs
Line 115 in eb6d903
https://github.com/utooland/utoo/blob/next/packages/pack-shared/src/webpackCompat.ts