esbuild-plugin-copy-watch
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

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

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

Contributing

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

License

MIT

Package Sidebar

Install

npm i esbuild-plugin-copy-watch

Weekly Downloads

140

Version

2.1.0

License

MIT

Unpacked Size

20.5 kB

Total Files

7

Last publish

Collaborators

  • tinchoz49