0.0.3 • Published 3 years ago

webpack-del-file-plugin v0.0.3

Weekly downloads
8
License
MIT
Repository
github
Last release
3 years ago

Webpack del file plugin

将构建后的文件进行删除操作,虽然这看起来很没用,但是在使用例如sentry,需要将生成的sourceMap先上传然后删除这种操作时,它会很有用。

安装

Using npm:

$ npm install webpack-del-file-plugin --save-dev

使用

  1. Require webpack-sentry-plugin:
var DelFilePlugin = require('webpack-del-file-plugin');
  1. 使用插件并配置:
var config = {
 plugins: [
   new DelFilePlugin({
     // 需要删除的文件名正则,默认会匹配.map文件
     deleteRegex: /\.map$/
   })
 ]
}
0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago