copy-webpack

4.2.0 • Public • Published

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
+   }
+ ]);

Readme

Keywords

Package Sidebar

Install

npm i copy-webpack

Weekly Downloads

364

Version

4.2.0

License

MIT

Unpacked Size

6.11 kB

Total Files

6

Last publish

Collaborators

  • airkro