You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/webpack/webpack.analyze.js

13 lines
435 B

const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const smp = new SpeedMeasurePlugin();
const merge = require('webpack-merge');
const webpackConfig = require('./webpack.production.js');
// const webpackConfig = require('./webpack.develop.js');
module.exports = smp.wrap(
merge(webpackConfig, {
plugins: [new BundleAnalyzerPlugin()],
})
);