Skip to content

Commit

Permalink
feat: change vite.config.ts to a easy baseUrl to build
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdparkour committed Jan 25, 2022
1 parent fefea17 commit 67c9b73
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* @Author: luoxi
* @Date: 2022-01-25 09:51:12
* @LastEditors: luoxi
* @LastEditTime: 2022-01-25 12:40:52
* @FilePath: \vue-admin-box\vite.config.ts
* @Description:
*/
import { ConfigEnv, UserConfigExport } from 'vite'
import vue from '@vitejs/plugin-vue'
import { viteMockServe } from 'vite-plugin-mock'
Expand All @@ -11,10 +19,14 @@ const alias: Record<string, string> = {
'@': pathResolve("src")
}

// https://vitejs.dev/config/
/**
* @description-en vite document address
* @description-cn vite官网
* https://vitejs.cn/config/ */
export default ({ command }: ConfigEnv): UserConfigExport => {
const prodMock = true;
return {
base: './',
resolve: {
alias
},
Expand Down

0 comments on commit 67c9b73

Please sign in to comment.