Skip to content

jadujoel/bun-copy-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Copy files plugin for bun build step

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published