Selaa lähdekoodia

fix npm start -- --host=0.0.0.0 unuseful

cashcat 3 vuotta sitten
vanhempi
commit
13d0f086cc
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      gulpfile.js

+ 3 - 1
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
     })