slime/vite.config.js

27 lines
473 B
JavaScript

import { defineConfig } from 'vite';
export default defineConfig({
build: {
minify: 'terser',
terserOptions: {
ecma: 2020,
compress: {
drop_console: true,
drop_debugger: true,
},
mangle: {
toplevel: true,
properties: true,
},
format: {
comments: false,
},
},
rollupOptions: {
output: {
manualChunks: undefined,
},
},
sourcemap: false,
},
});