Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 451 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 451 Bytes

rollup-copy-plugin

Simple rollup plugin to copy files.

Usage

NB: This plugin only copies files once when rollup start, any later changes will not be copied (before you start rollup again).

import copyPlugin from 'rollup-copy-plugin';

export default {
  // ...
  plugins: [
    // ...
    copyPlugin({
      './src/test1.txt': './dist/test1.txt',
      './src/test2.txt': './dist/test2.txt',
    }),
    // ...
  ],
  // ...
};