Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

vite-plugin-copy

goosy98.1kMIT0.1.6

Vitejs plguin: copy files and folders

vite, vite-plugin, copy, asset, assets, file, files, folder, folders, glob

readme

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