Browse Source

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

bubble
Tim Lai 4 years ago
committed by GitHub
parent
commit
60b411e8c0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions
  1. +1
    -0
      webpack/_config-builder.js
  2. +3
    -1
      webpack/bundle.babel.js

+ 1
- 0
webpack/_config-builder.js View File

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


+ 3
- 1
webpack/bundle.babel.js View File

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


Loading…
Cancel
Save