bun-copy-plugin
v0.2.1
Published
Plugin to copy files in bun build step
Downloads
1,175
Readme
Bun Copy Plugin
No nonsense copy files plugin on bun build.
Setup
bun i bun-copy-plugin
Use
import copy from 'bun-copy-plugin'
Bun.build({
entrypoints: ['src/index.ts'],
outdir: 'dist',
plugins: [
copy('static/index.html', 'dist/index.html'), // file 'static/index.html' -> 'dist/index.html'
copy('static/', 'dist/static'), // folder 'static' -> 'dist/static'
copy('static/', 'dist'), // contents of 'static' -> 'dist/*'
],
})