Skip to content

Commit

Permalink
fix: upgrade webpack-serve and avoid port conflict (close #424) (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy authored and ulivz committed May 13, 2018
1 parent 66bd797 commit 22ffe52
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion lib/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ module.exports = async function dev (sourceDir, cliOptions = {}) {
compiler,
host,
dev: { logLevel: 'warn' },
hot: { logLevel: 'error' },
hot: {
port: port + 1,
logLevel: 'error'
},
logLevel: 'error',
port,
add: app => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"webpack": "^4.8.1",
"webpack-chain": "^4.6.0",
"webpack-merge": "^4.1.2",
"webpack-serve": "^0.3.1",
"webpack-serve": "^0.3.2",
"webpackbar": "^2.6.1",
"workbox-build": "^3.1.0"
},
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7437,9 +7437,9 @@ webpack-merge@^4.1.2:
dependencies:
lodash "^4.17.5"

webpack-serve@^0.3.1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/webpack-serve/-/webpack-serve-0.3.1.tgz#a91a99d013a70d2c15df2d12c5d31a8842c033ba"
webpack-serve@0.3.2:
version "0.3.2"
resolved "https://registry.yarnpkg.com/webpack-serve/-/webpack-serve-0.3.2.tgz#9cfd823dd570438d8cf362e70586bc54af1f0c92"
dependencies:
"@shellscape/koa-static" "^4.0.4"
chalk "^2.3.0"
Expand Down

0 comments on commit 22ffe52

Please sign in to comment.