build(webpack): enable lodash options (#6248)
This commit is contained in:
@@ -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" },
|
||||||
|
|||||||
@@ -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"),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user