修复node 16启动问题,更新友链。
parent
e603c524a2
commit
ebb859c7cd
|
@ -11,6 +11,8 @@
|
||||||
### 友情链接
|
### 友情链接
|
||||||
[Fantastic-admin](https://hooray.gitee.io/fantastic-admin/) —— 一款开箱即用的 Vue 中后台管理系统框架(支持Vue2/Vue3)
|
[Fantastic-admin](https://hooray.gitee.io/fantastic-admin/) —— 一款开箱即用的 Vue 中后台管理系统框架(支持Vue2/Vue3)
|
||||||
|
|
||||||
|
[REBUILD](https://getrebuild.com/) —— 高度可定制化的企业管理系统
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
### 功能一览
|
### 功能一览
|
||||||
|
|
|
@ -7,18 +7,20 @@ function resolve (dir) {
|
||||||
return path.join(__dirname, 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)
|
console.log('npm config: ', npmConfigArgv)
|
||||||
const procArgv = process.argv
|
const procArgv = process.argv
|
||||||
console.log('npm config: ', procArgv)
|
console.log('npm config: ', procArgv)
|
||||||
*/
|
*/
|
||||||
let buildProdFlag = false
|
let buildProdFlag = false
|
||||||
npmConfigArgv.original.forEach(cItem => {
|
if (!!npmConfigArgv) {
|
||||||
|
npmConfigArgv.original.forEach(cItem => {
|
||||||
if (cItem === 'build') {
|
if (cItem === 'build') {
|
||||||
buildProdFlag = true
|
buildProdFlag = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
const mvdir = require('mvdir');
|
const mvdir = require('mvdir');
|
||||||
if (IS_PROD && buildProdFlag) {
|
if (IS_PROD && buildProdFlag) {
|
||||||
|
|
Loading…
Reference in New Issue