Update vite from 2.9.9 to 3.1.0

This commit is contained in:
Louis Lam
2022-09-12 18:33:46 +08:00
parent 839183aa85
commit 104d521633
3 changed files with 2000 additions and 271 deletions

View File

@@ -11,6 +11,9 @@ const viteCompressionFilter = /\.(js|mjs|json|css|html|svg)$/i;
// https://vitejs.dev/config/
export default defineConfig({
server: {
port: 3000,
},
define: {
"FRONTEND_VERSION": JSON.stringify(process.env.npm_package_version),
},