mwmbl/front-end/vite.config.js
2023-11-07 18:59:38 +00:00

24 lines
476 B
JavaScript

import legacy from '@vitejs/plugin-legacy'
import { resolve } from 'path'
export default {
root: './src',
base: '/static',
publicDir: '../assets',
build: {
outDir: '../dist',
manifest: true,
rollupOptions: {
input: {
index: resolve(__dirname, 'src/index.js'),
stats: resolve(__dirname, 'src/stats/index.html'),
},
},
minify: false,
},
plugins: [
legacy({
targets: ['defaults', 'not IE 11'],
}),
]
}