pokerogue/vite.config.js
2024-03-28 11:48:51 -04:00

18 lines
354 B
JavaScript

import { defineConfig } from 'vite';
// import fs from 'vite-plugin-fs';
export default defineConfig(({ mode }) => {
return {
plugins: [/*fs()*/],
server: { host: '0.0.0.0', port: 8000 },
clearScreen: false,
build: {
minify: 'esbuild',
},
esbuild: {
pure: mode === 'production' ? [ 'console.log' ] : [],
keepNames: true,
}
}
})