Vitejs plguin: copy files and folders
This guy is lazy and has not had time to write the document
# npm
npm install vite-plugin-copy -D
import copy from 'vite-plugin-copy'
export default {
input: "index.js",
output: {
file: "bundler.js",
format: 'es',
},
plugins: [
copy([
{ src: './data.js', dest: 'dist/' },
]),
],
};