module-analysis-webpack-plugin
v1.0.4
Published
A webpack plugin to find unused loaders, the most time consuming files and unused files.
Downloads
7
Readme
ModuleAnalysisWebpackPlugin
A webpack plugin to find unused loaders, the most time consuming files and unused files.
Install
npm i --dev module-analysis-webpack-plugin
Usage
import ModuleAnalysisWebpackPlugin from 'module-analysis-webpack-plugin';
module.exports = {
// webpack configuration
plugins: [
...otherPlugins,
new ModuleAnalysisWebpackPlugin(),
],
};
Options
env
: webpack 编译环境 (defaults todev
).targetPath
: 目标文件夹,默认为根目录下的 (defaults to./src
)costTop
: 编译最耗时文件显示数量 (defaults to10
)output
: 输出文件的格式 (defaults tohtml
)
最耗时文件
未使用到的loaders
未使用到的文件