1.0.0 • Published 3 years ago

esbuild-copy-plugin v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

esbuild-plugin-copy

copy some files from one destination to another

Installation

npm i --save-dev esbuild-copy-plugin

Usage

import esbuild from 'esbuild';
import copy from 'esbuild-copy-plugin';

esbuild.build({
    entryPoints: ['./src/index.js'],
    bundle:      true,
    outfile:     './dist/index.js',
    plugins:     [
        copy({from: './public', to: '.'}),
    ]
});