1.0.0 • Published 3 years ago

copy-webpack-output-plugin v1.0.0

Weekly downloads
19
License
MIT
Repository
github
Last release
3 years ago

copy-webpack-output-plugin

npm version npm downloads node engine

A webpack plugin to copy your output files to somewhere

Install

npm i copy-webpack-output-plugin --save-dev

Usage

Copy directory or file

const CopyWebpackOutputPlugin = require('copy-webpack-output-plugin');

// copy dir
plugins: [
  new CopyWebpackOutputPlugin([{ src: '/tmp/mydir', dest: '/tmp/mynewdir' }]),
];

// copy file
plugins: [
  new CopyWebpackOutputPlugin([{ src: '/tmp/myfile', dest: '/tmp/mynewfile' }]),
];

// multiple
plugins: [
  new CopyWebpackOutputPlugin([
    { src: '/tmp/mydir', dest: '/tmp/mynewdir' },
    { src: '/tmp/myfile', dest: '/tmp/mynewfile' },
  ]),
];

With options

const filterFn = (src, dest) => {};

// with optioins
plugins: [
  new CopyWebpackOutputPlugin([
    { src: '/tmp/mydir', dest: '/tmp/mynewdir' },
    { filter: filterFn, overwrite: false },
  ]),
];

copy-webpack-output-plugin uses node-fs-extra as dependency, more about src, dest and options: node-fs-extra copy

License

MIT LICENSE

1.0.0

3 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago