当我做出改变时,我在终端看到了这一点:
[1] [piping] File src/containers/Blocks/Blocks.js has changed, reloading.
[0] webpack building...
[0] webpack built 67cf99a9b98c59d668ed in 3497ms
但在此之后,我再也无法做任何事了,如果我刷新我会看到:
GET http://blokdemo.localhost:3000/dashboard net::ERR_CONNECTION_REFUSED
它曾经有用,但自从我更新后:
"webpack": "^1.12.9",
"webpack-dev-middleware": "^1.4.0",
"webpack-hot-middleware": "^2.5.0"
到此:
"webpack": "^1.13.0",
"webpack-dev-middleware": "^1.6.1",
"webpack-hot-middleware": "^2.10.0",
"webpack-isomorphic-tools": "^2.2.50"
它不再起作用了。
这些是我用来运行的两个命令:
"start-dev": {
"command": "node ./bin/server.js",
"env": {
"NODE_PATH": "./src",
"NODE_ENV": "development",
"PORT": 3000,
"APIHOST": "http://localhost:3333"
}
},
"watch-client": {
"command": "node webpack/webpack-dev-server.js",
"env": {
"UV_THREADPOOL_SIZE": 100,
"NODE_PATH": "./src",
"PORT": 3000
}
}
这是我的dev.config的链接:dev config
知道可能导致这种情况的原因吗?
提前致谢。