mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Only enable minimize in production
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com>
This commit is contained in:
parent
40760b05e7
commit
edca90f6cc
@ -34,6 +34,9 @@ export default function (): webpack.Configuration {
|
|||||||
externalsPresets: { node: true },
|
externalsPresets: { node: true },
|
||||||
// in order to ignore all modules in node_modules folder
|
// in order to ignore all modules in node_modules folder
|
||||||
externals: nodeExternals(),
|
externals: nodeExternals(),
|
||||||
|
optimization: {
|
||||||
|
minimize: isProduction,
|
||||||
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user