gallery/vite.config.js

22 lines
494 B
JavaScript

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",
}
}
},
})