plugin|SpeedMeasurePlugin

顯示各項目的編譯速度

顯示各項目的編譯速度

const SpeedMeasurePlugin = require('speed-measure-webpack-plugin')
const smp = new SpeedMeasurePlugin({
disable: !process.env.MEASURE // MEASURE=true npm run build
outputFormat: 'humanVerbose',
compareLoadersBuild: {
filePath: `./buildInfo.${system?.length === 1 ? system[0] : 'index'}.json`
}
})
module.exports = {
configureWebpack: smp.wrap({
plugins: [...]
})
}