3.0.0 • Published 2 months ago

copy-webpack v3.0.0

Weekly downloads
366
License
MIT
Repository
github
Last release
2 months ago

copy-webpack

A simple copy-webpack-plugin.

npm github node

Installation

npm install copy-webpack --save-dev

Usage

// example: webpack.config.cjs
const { CopyWebpack } = require('copy-webpack');

module.exports = {
  plugins: [new CopyWebpack('static')]
};

Options

Glob or path from where we copy files.

string object [string|object]

- new CopyWebpackPlugin({
-   patterns: [
-     {
-       from: 'static',
-       globOptions: {
-         dot: true,
-         ignore: ['.gitkeep']
-       }
-     }
-   ]
- });
+ new CopyWebpack('static');
- new CopyWebpackPlugin({
-   patterns: [
-     {
-       from: 'extra',
-       noErrorOnMissing: true,
-       globOptions: {
-         dot: true,
-         ignore: ['.gitkeep']
-       }
-     }
-   ]
- });
+ new CopyWebpack([
+   {
+     from: 'extra',
+     noErrorOnMissing: true
+   }
+ ]);
3.0.0

2 months ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.0

4 years ago