From 13d0f086cc7bd3ffd6ae864950f01019a3ac8965 Mon Sep 17 00:00:00 2001 From: cashcat Date: Sun, 21 Nov 2021 12:23:28 +0800 Subject: [PATCH] fix npm start -- --host=0.0.0.0 unuseful --- gulpfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 4321b72..21ded2a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -24,6 +24,7 @@ const autoprefixer = require('gulp-autoprefixer') const root = yargs.argv.root || '.' const port = yargs.argv.port || 8000 +const host = yargs.argv.host || 'localhost' const banner = `/*! * reveal.js ${pkg.version} @@ -289,7 +290,8 @@ gulp.task('serve', () => { connect.server({ root: root, port: port, - host: 'localhost', + host: host, + //host: '0.0.0.0', livereload: true })