webpack 分析

 

编译后 自动打开浏览器 可视

 

//npm install --save-dev webpack-bundle-analyzer

//webpack.base.conf.js 

const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;

module.exports = {
  plugins: [
    new BundleAnalyzerPlugin()
  ]
}

 

 

https://github.com/webpack-contrib/webpack-bundle-analyzer

posted @ 2018-04-06 14:13  快乐的咸鱼  阅读(137)  评论(0编辑  收藏  举报