https://github.com/kyuch4n/webpack-copy-files
https://github.com/kyuch4n/webpack-copy-files
copy-files module webpack
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kyuch4n/webpack-copy-files
- Owner: kyuch4n
- Created: 2020-02-20T12:52:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-20T12:57:50.000Z (over 6 years ago)
- Last Synced: 2025-03-21T08:48:38.455Z (over 1 year ago)
- Topics: copy-files, module, webpack
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webpack-copy-files
## APIs
### AsyncFunction resolve(webpackConf[, filters])
```javascript
const path = require("path");
const copyFile = require("webpack-copy-file");
copyFile.resolve(
{
entry: path.resolve(__dirname, "./src/App.vue")
},
[/node_modules/, /\?/, /^external/]
);
```
### AsyncFunction resolveAndCopy(webpackConf[, filters])
```javascript
const path = require("path");
const copyFile = require("webpack-copy-file");
copyFile.resolveAndCopy(
{
entry: path.resolve(__dirname, "./src/App.vue"),
output: {
path: path.resolve(__dirname, "./dist")
}
},
[/node_modules/, /\?/, /^external/]
);
```