https://github.com/lijialiang/fs-copy-webpack-plugin
https://github.com/lijialiang/fs-copy-webpack-plugin
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lijialiang/fs-copy-webpack-plugin
- Owner: lijialiang
- License: mit
- Created: 2018-11-15T06:49:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-24T07:07:16.000Z (over 6 years ago)
- Last Synced: 2024-12-27T00:27:29.110Z (6 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fs-copy-webpack-plugin
## Install
```sh
npm i fs-copy-webpack-plugin --save-dev# or
yarn add fs-copy-webpack-plugin --dev
```## How to use
```js
// webpack.config
module.exports = {
plugin: [
new FsCopyWebpackPlugin({
root: __dirname,
src: 'src',
dist: 'dist',
files: {
'a.png': 'b.png'
}
})
]
}
````./src/a.png` will cope to `./dist/b.png`