feat: 页面处理为预渲染

This commit is contained in:
chdjj
2023-12-05 01:18:32 +08:00
parent 24b80f04c2
commit bd90d496e7
4 changed files with 2881 additions and 3513 deletions
+3 -1
View File
@@ -4,6 +4,7 @@ import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
import {viteMockServe} from 'vite-plugin-mock'
import path from 'path'
import { createHtmlPlugin } from 'vite-plugin-html'
import {seoperender} from "./ssr.config";
// https://vitejs.dev/config/
export default defineConfig(({command, mode}) => {
@@ -31,7 +32,8 @@ export default defineConfig(({command, mode}) => {
title: env.VITE_APP_TITLE
}
}
})
}),
seoperender()
],
resolve: {
alias: {