зеркало из https://github.com/nextcloud/cookbook.git
14 строки
378 B
JavaScript
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,
|
|
}
|
|
)
|
|
] : [],
|
|
})
|