An open API service indexing awesome lists of open source software.

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

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/]
);
```