1.0.13 • Published 2 years ago

sweep-webpack-plugin v1.0.13

Weekly downloads
-
License
ISC
Repository
github
Last release
2 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

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago