A plugin for esbuild that copies files or directories from one location to another during the build process. Version 1.0.0 is the current release. It provides a simple API to define copy operations using `from` and `to` paths. Unlike general-purpose tools like `cpy` or `copy-webpack-plugin`, this is tightly integrated with esbuild's plugin system and runs as part of the build lifecycle. The package is lightweight, with no dependencies. It is maintained, but has a low release cadence.
npm install esbuild-copy-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: copies all files from ./public to ./dist (the output directory) during the esbuild build.
Use absolute paths or ensure your working directory is the project root.
Specify 'to' relative to outdir, e.g., if outdir is './dist', to: '.' places files directly in './dist'.
N/A
Make sure esbuild build is awaited (since esbuild 0.17+ build returns a promise).
Use `import copy from 'esbuild-copy-plugin'` or `const copy = require('esbuild-copy-plugin')`.No dependency data recorded yet.