# move-webpack-plugin

> Webpack plugin to move around files and directories

Latest version **1.0.0** (published 2018-06-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install move-webpack-plugin
pnpm add move-webpack-plugin
yarn add move-webpack-plugin
bun add move-webpack-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-06-13 |
| First published | 2016-07-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | zhongzhi |
| Maintainers | zhongzhi |
| Keywords | webpack, plugin, move, files, folders |

## Links

- npm: https://www.npmjs.com/package/move-webpack-plugin
- Repository: https://github.com/zhongzhi107/move-webpack-plugin
- Homepage: https://github.com/zhongzhi107/move-webpack-plugin#readme
- Issues: https://github.com/zhongzhi107/move-webpack-plugin/issues
- npm.io page: https://npm.io/package/move-webpack-plugin

## Dependencies (2)

- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [packing-glob](https://npm.io/package/packing-glob.md) ^1.0.1

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-06-13
- 0.0.2 — 2018-05-29
- 0.0.1 — 2016-07-28

## README

# move-webpack-plugin

Webpack plugin to move around files and directories.

在 webpack 编译前 或 编译后 执行文件移动操作。

## 安装
```
npm i move-webpack-plugin
```

## 用法
```js
import MoveWebpackPlugin from 'move-webpack-plugin';

new MoveWebpackPlugin({
  src: 'webpack-stats.json',
  dest: 'dist'
}),

```

## 参数
### patterns
{Object}: 需要操作的文件 `glob` 对象

### when
{String='done|beforeRun'}: 移动文件的时机
- done: 编译完成时移动文件
- beforeRun: 准备编译前时移动文件

---
_Source: https://npm.io/package/move-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
