build-time-webpack-plugin
v1.0.2
Published
webpack plugin for build time
Downloads
4
Readme
npm i --save-dev build-time-webpack-plugin
yarn add --dev build-time-webpack-plugin
在Webpack项目中,了解构建过程所花费的时间对于性能优化和调试至关重要。Build Time Webpack Plugin 是一个简单而强大的Webpack插件,它能够帮助你统计并显示Webpack构建过程的总时间。这个插件非常适合在开发环境中使用,以便快速识别和解决构建时间过长的问题。
webpack.config.js
const BuildTimeWebpackPlugin = require('build-time-webpack-plugin')
module.exports = {
entry: 'index.js',
output: {
path: __dirname + '/dist',
filename: 'index_bundle.js'
},
plugins: [
new HtmlWebpackPlugin()
]
}