Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 465 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 465 Bytes

vite-plugin-copy

Vitejs plguin: copy files and folders

This guy is lazy and has not had time to write the document

Installation

# npm
npm install vite-plugin-copy -D

Usage

import copy from 'vite-plugin-copy'

export default {
    input: "index.js",
    output: {
        file: "bundler.js",
        format: 'es',
    },
    plugins: [
        copy([
            { src: './data.js', dest: 'dist/' },
        ]),
    ],
};