Skip to content

Commit f647446

Browse files
committed
Allow opening the browser even when verbose mode is disabled
1 parent b67f94e commit f647446

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,17 @@ function serve (options = { contentBase: '' }) {
7979
server = createServer(requestListener).listen(options.port, options.host)
8080
}
8181

82-
let running = options.verbose === false
82+
let first = true
8383

8484
return {
8585
name: 'serve',
8686
generateBundle () {
87-
if (!running) {
88-
running = true
87+
if (first) {
88+
first = false
8989

9090
// Log which url to visit
9191
const url = (options.https ? 'https' : 'http') + '://' + (options.host || 'localhost') + ':' + options.port
92-
if (options.verbose) {
92+
if (options.verbose !== false) {
9393
options.contentBase.forEach(base => {
9494
console.log(green(url) + ' -> ' + resolve(base))
9595
})

0 commit comments

Comments
 (0)