2.1.0 • Published 4 months ago

esbuild-plugin-copy-watch v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

esbuild-plugin-copy-watch

Esbuild plugin to copy and watch for files

Test Status JavaScript Style Guide standard-readme compliant

Install

$ npm install esbuild-plugin-copy-watch

Usage

import esbuild from 'esbuild'
import copy from 'esbuild-plugin-copy-watch'

await esbuild.build({
  entryPoints: ['src/index.js'],
  bundle: true,
  outfile: 'dest/build.js',
  write: false,
  plugins: [
    copy({
      paths: [
        { from: 'static/**', to: 'static' }, // will copy into dest/static
        { from: ['config/*.js', '!config/private.js'], to: 'config' } // will copy config files into dest/config and ignore the private.js
      ]
    })
  ]
})

Issues

:bug: If you found an issue we encourage you to report it on github. Please specify your OS and the actions to reproduce it.

Contributing

:busts_in_silhouette: Ideas and contributions to the project are welcome. You must follow this guideline.

License

MIT

2.1.0

4 months ago

2.0.2

10 months ago

2.0.1

10 months ago

2.0.0

11 months ago

1.0.0

1 year ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago