pixel-icon-web/vite.config.js

27 lines
606 B
JavaScript
Raw Normal View History

2023-11-08 00:46:14 +08:00
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
2024-11-15 17:46:19 +08:00
import copy from 'rollup-plugin-copy'
2023-11-08 00:46:14 +08:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
2023-11-13 03:45:22 +08:00
build: {
rollupOptions: {
output: {
entryFileNames: `assets/[name].js`,
chunkFileNames: `assets/[name].js`,
assetFileNames: `assets/[name].[ext]`
2024-11-15 17:46:19 +08:00
},
plugins: [
copy({
targets: [
{ src: 'public/icons.json', dest: 'dist/assets' }
],
verbose: true,
hook: 'writeBundle',
})
]
2023-11-13 03:45:22 +08:00
}
},
2023-11-08 00:46:14 +08:00
})