Skip to content
This repository was archived by the owner on Jun 14, 2018. It is now read-only.

Commit 4363b3c

Browse files
committed
log url when bundle is valid
1 parent eae8c8d commit 4363b3c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

template/build/dev-server.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,17 @@ app.use(hotMiddleware)
5858
var staticPath = path.posix.join(config.dev.assetsPublicPath, config.dev.assetsSubDirectory)
5959
app.use(staticPath, express.static('./static'))
6060

61+
var uri = 'http://localhost:' + port
62+
63+
devMiddleware.waitUntilValid(function () {
64+
console.log('> Listening at ' + uri + '\n')
65+
})
66+
6167
module.exports = app.listen(port, function (err) {
6268
if (err) {
6369
console.log(err)
6470
return
6571
}
66-
var uri = 'http://localhost:' + port
67-
console.log('Listening at ' + uri + '\n')
6872

6973
// when env is testing, don't need open it
7074
if (process.env.NODE_ENV !== 'testing') {

0 commit comments

Comments
 (0)