0.2.1 • Published 7 months ago

bun-copy-plugin v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Bun Copy Plugin

No nonsense copy files plugin on bun build.

Github Repo

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/*'
  ],
})
0.2.1

7 months ago

0.2.0

7 months ago

0.1.0

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago