3970a26b92
* Adjust lib chunk naming algorithm and prevent duplicate react-dom * Remove alias for react-dom and update separator replacement logic * Add comment to webpack-config * Add integration test for react-dom duplication * Switch to using hash for lib chunk names * remove extra file from PR * Remove another extraneous change * Remove test based on lib chunk name * Update index.test.js
17 lines
381 B
JavaScript
17 lines
381 B
JavaScript
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
|
|
.BundleAnalyzerPlugin
|
|
module.exports = {
|
|
experimental: {
|
|
granularChunks: true
|
|
},
|
|
webpack (config) {
|
|
config.plugins = config.plugins || []
|
|
config.plugins.push(
|
|
new BundleAnalyzerPlugin({
|
|
analyzerMode: 'disabled',
|
|
generateStatsFile: true
|
|
})
|
|
)
|
|
return config
|
|
}
|
|
}
|