新增构建后本地访问脚本
Showing
... | ... | @@ -7,6 +7,7 @@ |
"scripts:build": "node scripts/run", | ||
"start": "yarn api && yarn scripts:build && umi dev", | ||
"build": "yarn api && yarn scripts:build && umi build", | ||
"build:dev": "pm2 start scripts/devServer.js", | ||
"build:analyze": "ANALYZE=1 umi build", | ||
"postinstall": "umi generate tmp", | ||
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'", | ||
... | ... | @@ -45,6 +46,8 @@ |
}, | ||
"devDependencies": { | ||
"axios": "^0.19.2", | ||
"connect-history-api-fallback": "^1.6.0", | ||
"express": "^4.17.1", | ||
"god-yapi2ts": "^1.6.0", | ||
"gulp": "^4.0.2", | ||
"json2ts": "^0.0.7", | ||
... | ... |
scripts/devServer.js
0 → 100644
Please
register
or
sign in
to comment