mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
29 lines
536 B
JavaScript
29 lines
536 B
JavaScript
import { defineConfig } from 'vite';
|
|
import legacy from '@vitejs/plugin-legacy';
|
|
|
|
export default defineConfig({
|
|
root: 'src',
|
|
publicDir: 'public',
|
|
base: '',
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
main: 'src/index.html',
|
|
playground: 'src/playground.html',
|
|
},
|
|
},
|
|
outDir: '../templates',
|
|
emptyOutDir: true,
|
|
minify: true,
|
|
cssTarget: [
|
|
'ie11',
|
|
],
|
|
},
|
|
plugins: [
|
|
legacy({
|
|
targets: 'IE 11, Chrome>=38, Safari>=7.1, FF>=15',
|
|
polyfills: false,
|
|
}),
|
|
],
|
|
});
|