taro-plugin-webpack-analyze
支持 webpack 打包分析
Usage
$ yarn add taro-plugin-webpack-analyze -D # or npm i taro-plugin-webpack-analyze --save-dev
配置
const config = {
// ...
plugins: ['taro-plugin-webpack-analyze'],
};
开启分析模式:
# windows
$ yarn cross-env ANALYZE=true yarn build:weapp
# *unix
$ ANALYZE=true yarn build:weapp
运行截图: