wip: coding

This commit is contained in:
kailong321200875
2022-06-24 21:36:33 +08:00
parent 537af57a0a
commit 1878c2ede7
4 changed files with 34 additions and 11 deletions

View File

@@ -22,7 +22,7 @@ function pathResolve(dir: string) {
// https://vitejs.dev/config/
export default ({ command, mode }: ConfigEnv): UserConfig => {
let env = null
let env = {} as any
const isBuild = command === 'build'
if (!isBuild) {
env = loadEnv((process.argv[3] === '--mode' ? process.argv[4] : process.argv[3]), root)
@@ -146,7 +146,8 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
'intro.js',
'qrcode',
'@wangeditor/editor',
'@wangeditor/editor-for-vue'
'@wangeditor/editor-for-vue',
'js-md5'
]
}
}