clean-useless-file-wepback-plugin
v1.0.0
Published
find or delete useless files with webpack plugins
Downloads
4
Readme
clean-useless-file-wepback-plugin
find or delete useless files with webpack plugins
Installation
const UselessFile = require('index.js')
plugins: [
new UselessFile({
root: './src', // 项目目录
out: './fileList.json', // 输出文件列表
// clean?: false, // 是否删除文件,
exclude: [
/abc/g,
'file-name'
] // 过滤文件,支持字符串匹配 或 正则匹配
})
]