feat: docker部署方案
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import { defineConfig, loadEnv } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
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/
|
||||
@@ -21,10 +19,6 @@ export default defineConfig(({command, mode}) => {
|
||||
// Specify symbolId format
|
||||
symbolId: 'icon-[dir]-[name]',
|
||||
}),
|
||||
//mock
|
||||
viteMockServe({
|
||||
localEnabled: env.VITE_IS_MOCK == 'true' ? command === 'serve' : false,
|
||||
}),
|
||||
seoperender()
|
||||
],
|
||||
resolve: {
|
||||
|
||||
Reference in New Issue
Block a user