Update vite.config.ts

This commit is contained in:
Ne0 2024-05-06 18:30:02 +08:00 committed by GitHub
parent c59ad6aedb
commit d8a9e7d543
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,11 @@ import { ssr } from 'vite-plugin-ssr/plugin';
const baseUrl = process.env.BASE_URL ?? '/'; const baseUrl = process.env.BASE_URL ?? '/';
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig(
{
server: {
hmr: process.env.NODE_ENV !== 'production'
},
plugins: [ plugins: [
VueI18n({ VueI18n({
runtimeOnly: true, runtimeOnly: true,