@
dr490n "scripts": {
"build:dev": "npm run clean && npm run preprocess && npm run webpack -- --watch",
"build": "npm run clean && npm run preprocess && npm run webpack",
"clean:dist": "npm run rimraf -- dist",
"clean": "npm cache clean && npm run clean:dist",
"lint": "eslint src/**/*.js",
"node": "node",
"preprocess": "node config/preprocess.js",
"rimraf": "rimraf",
"server": "node server/index.js",
"start": "npm run build && npm run server",
"test": "echo \"Error: no test specified\" && exit 1",
"webpack": "webpack --config webpack.config.js --progress --profile",
"yarn": "yarn --ignore-engines"
},
刚注意看了一下输出,
2018-05-18T00:47:17.942Z [INFO] config: {"env":"production","logLevel":"silly","serverPort":8080}
2018-05-18T00:47:17.950Z [INFO] Webportal server starts on port 8080
2018-05-18T00:47:42.867Z [WARN] Error: Page not found
确实是在 production, 然后我在配置文件中改成了 development, 还是没有输出><
2018-05-18T02:14:09.554Z [INFO] config: {"env":"development","logLevel":"silly","serverPort":8080}