We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b67f94e commit f647446Copy full SHA for f647446
src/index.js
@@ -79,17 +79,17 @@ function serve (options = { contentBase: '' }) {
79
server = createServer(requestListener).listen(options.port, options.host)
80
}
81
82
- let running = options.verbose === false
+ let first = true
83
84
return {
85
name: 'serve',
86
generateBundle () {
87
- if (!running) {
88
- running = true
+ if (first) {
+ first = false
89
90
// Log which url to visit
91
const url = (options.https ? 'https' : 'http') + '://' + (options.host || 'localhost') + ':' + options.port
92
- if (options.verbose) {
+ if (options.verbose !== false) {
93
options.contentBase.forEach(base => {
94
console.log(green(url) + ' -> ' + resolve(base))
95
})
0 commit comments