Esbuild plugin to copy assets (files and directories) into the output directory during bundling. Version 1.0.1 is stable with ~12.7kb size. Alternatives include @chialab/esbuild-plugin-copy (more configurable) and esbuild-plugin-copy (glob patterns). This plugin uses explicit from/to objects, supports verbose logging and a restrictive mode to limit directory access.
npm install esbuild-plugin-mxn-copyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an esbuild build script that copies HTML, SVG, and a directory into the output using the copy plugin.
Use array of {from, to} objects for each file or directory. For globs, consider alternatives like @chialab/esbuild-plugin-copy.Ensure the 'to' path matches the desired output location; it does not automatically append to outdir.
Use import syntax or dynamic import. For CommonJS projects, use import() or switch to a CommonJS-compatible copy plugin.
Change to import statement: import esbuildMxnCopy from 'esbuild-plugin-mxn-copy'
Use default import: import esbuildMxnCopy from 'esbuild-plugin-mxn-copy'
No dependency data recorded yet.