bun-copy-plugin

0.2.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i bun-copy-plugin

Weekly Downloads

21

Version

0.2.1

License

MIT

Unpacked Size

5.06 kB

Total Files

7

Last publish

Collaborators

  • jadujoel