gallery/vite.config.js

22 lines
494 B
JavaScript
Raw Normal View History

2024-10-24 09:56:51 +00:00
import { defineConfig } from "vite";
import { resolve } from 'path'
export default defineConfig({
base: '/js',
build: {
emptyOutDir: true,
outDir: resolve(__dirname, 'static/js'),
assetsDir: '',
rollupOptions: {
input: {
main: "src/main.js",
},
output: {
format: "es",
// dir: "static/js",
entryFileNames: "[name].js",
}
}
},
})