build(webpack): enable lodash options (#6248)

This commit is contained in:
Tim Lai
2020-07-21 10:49:13 -07:00
committed by GitHub
parent d12662e354
commit 60b411e8c0
2 changed files with 4 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ const baseRules = [
options: { options: {
retainLines: true, retainLines: true,
cacheDirectory: true, cacheDirectory: true,
plugins: ["lodash"]
}, },
}, },
{ test: /\.(txt|yaml)$/, loader: "raw-loader" }, { test: /\.(txt|yaml)$/, loader: "raw-loader" },

View File

@@ -31,7 +31,9 @@ const result = configBuilder(
// display full duplicates information? (Default: `false`) // display full duplicates information? (Default: `false`)
verbose: false, verbose: false,
}), }),
new LodashModuleReplacementPlugin(), new LodashModuleReplacementPlugin({
"memoizing": true
}),
new WebpackBundleSizeAnalyzerPlugin("log.bundle-sizes.swagger-ui.txt"), new WebpackBundleSizeAnalyzerPlugin("log.bundle-sizes.swagger-ui.txt"),
] ]
} }