1.0.13 • Published 3 years ago

sweep-webpack-plugin v1.0.13

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

说明

清除项目当中无用的文件,支持移动/删除/恢复操作

安装

npm install -S sweep-webpack-plugin

使用

const SweepWebpackPlugin = require('sweep-webpack-plugin')

// webpack.conf.js
plugins:[
  new SweepWebpackPlugin({
      // 扫描的根目录
      root: './src',
      // 不扫描目录
      exclude: [],
      // 不扫描后缀,为空时扫描所有后缀
      excludeSuffix: [],
      // 扫描后缀,为空时扫描所有后缀
      includeSuffix: [],
      // 对无用文件执行的操作,move移动、delete删除
      operate: 'move'
    })
]

恢复

恢复操作仅针对移动无用文件的操作,而且只针对本次移动操作后的恢复。其他情况可能无法恢复。

npm run sweep-restore
1.0.11

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago