1
0
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:
Hung-Han (Henry) Chen 2020-12-04 19:02:41 +08:00
parent 40760b05e7
commit edca90f6cc
No known key found for this signature in database
GPG Key ID: A28B7834EFA73792

View File

@ -34,6 +34,9 @@ export default function (): webpack.Configuration {
externalsPresets: { node: true },
// in order to ignore all modules in node_modules folder
externals: nodeExternals(),
optimization: {
minimize: isProduction,
},
module: {
rules: [
{