修复node 16启动问题,更新友链。

master
vdpAdmin 2021-11-30 09:54:55 +08:00
parent e603c524a2
commit ebb859c7cd
2 changed files with 10 additions and 6 deletions

View File

@ -11,6 +11,8 @@
### 友情链接
[Fantastic-admin](https://hooray.gitee.io/fantastic-admin/) —— 一款开箱即用的 Vue 中后台管理系统框架支持Vue2/Vue3
[REBUILD](https://getrebuild.com/) —— 高度可定制化的企业管理系统
<br/>
### 功能一览

View File

@ -7,18 +7,20 @@ function resolve (dir) {
return path.join(__dirname, dir)
}
const npmConfigArgv = JSON.parse(process.env.npm_config_argv)
const npmConfigArgv = (process.env.npm_config_argv === undefined) ? null : JSON.parse(process.env.npm_config_argv)
/*
console.log('npm config: ', npmConfigArgv)
const procArgv = process.argv
console.log('npm config: ', procArgv)
*/
let buildProdFlag = false
npmConfigArgv.original.forEach(cItem => {
if (cItem === 'build') {
buildProdFlag = true
}
})
if (!!npmConfigArgv) {
npmConfigArgv.original.forEach(cItem => {
if (cItem === 'build') {
buildProdFlag = true
}
})
}
const mvdir = require('mvdir');
if (IS_PROD && buildProdFlag) {