18a9c7e371
* Update `packages/` * Update examples * Update tests * Update bench * Update top level files * Fix build * trigger
14 lines
296 B
JavaScript
14 lines
296 B
JavaScript
const {
|
|
WebpackBundleSizeAnalyzerPlugin,
|
|
} = require('webpack-bundle-size-analyzer')
|
|
const { ANALYZE } = process.env
|
|
|
|
module.exports = {
|
|
webpack: function(config) {
|
|
if (ANALYZE) {
|
|
config.plugins.push(new WebpackBundleSizeAnalyzerPlugin('stats.txt'))
|
|
}
|
|
|
|
return config
|
|
},
|
|
}
|