Skip to content

Commit

Permalink
Update vite.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangqingliu88 authored Dec 17, 2024
1 parent c2f570f commit 57d0d9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const __APP_INFO__ = {
const pathSrc = resolve(__dirname, "src");
// Vite配置 https://cn.vitejs.dev/config
export default defineConfig(({ mode }: ConfigEnv): UserConfig => {

const env = loadEnv(mode, process.cwd());
return {
resolve: {
Expand Down Expand Up @@ -54,6 +55,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
},
},
},
base: '/vue3_eman_server/',
plugins: [
vue(),
env.VITE_MOCK_DEV_SERVER === "true" ? mockDevServerPlugin() : null,
Expand Down

0 comments on commit 57d0d9f

Please sign in to comment.