delete-assets-webpack-plugin
v1.0.0
Published
delete-assets-webpack-plugin
Downloads
6
Maintainers
Readme
delete-assets-webpack-plugin
要求webpack5以上
用于 webpack 打包后生成到目录前删除不需要的资源
安装
npm install --save-dev delete-assets-webpack-plugin
demo
const DeleteAssetsWebpackPlugin = require('delete-assets-webpack-plugin');
module.exports = {
plugins: [
// 传入资源数组路径进行删除
new DeleteAssetsWebpackPlugin(['main.js']),
]
};