2023-04-03 17:47:41 -07:00
|
|
|
import { defineConfig } from 'vite';
|
2024-03-25 17:02:54 -07:00
|
|
|
// import fs from 'vite-plugin-fs';
|
2023-03-28 11:54:52 -07:00
|
|
|
|
2024-03-28 08:48:51 -07:00
|
|
|
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,
|
|
|
|
}
|
2024-03-25 17:02:54 -07:00
|
|
|
}
|
2023-03-28 11:54:52 -07:00
|
|
|
})
|