修复node 16启动问题,更新友链。
parent
e603c524a2
commit
ebb859c7cd
|
@ -11,6 +11,8 @@
|
|||
### 友情链接
|
||||
[Fantastic-admin](https://hooray.gitee.io/fantastic-admin/) —— 一款开箱即用的 Vue 中后台管理系统框架(支持Vue2/Vue3)
|
||||
|
||||
[REBUILD](https://getrebuild.com/) —— 高度可定制化的企业管理系统
|
||||
|
||||
<br/>
|
||||
|
||||
### 功能一览
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue