cookbook/webpack.devel.js

14 строки
378 B
JavaScript
Исходник Обычный вид История

const { merge } = require('webpack-merge')
const base = require('./webpack.config.js')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
module.exports = (env) => merge(base(env), {
plugins: env.BUNDLE_ANALYZER ? [
new BundleAnalyzerPlugin(
{
openAnalyzer: true,
}
)
] : [],
})