Merge pull request #3075 from cashcat/patch1
fix npm start -- --host=0.0.0.0 unuseful
This commit is contained in:
commit
2d050a88e2
@ -24,6 +24,7 @@ const autoprefixer = require('gulp-autoprefixer')
|
|||||||
|
|
||||||
const root = yargs.argv.root || '.'
|
const root = yargs.argv.root || '.'
|
||||||
const port = yargs.argv.port || 8000
|
const port = yargs.argv.port || 8000
|
||||||
|
const host = yargs.argv.host || 'localhost'
|
||||||
|
|
||||||
const banner = `/*!
|
const banner = `/*!
|
||||||
* reveal.js ${pkg.version}
|
* reveal.js ${pkg.version}
|
||||||
@ -289,7 +290,8 @@ gulp.task('serve', () => {
|
|||||||
connect.server({
|
connect.server({
|
||||||
root: root,
|
root: root,
|
||||||
port: port,
|
port: port,
|
||||||
host: 'localhost',
|
host: host,
|
||||||
|
//host: '0.0.0.0',
|
||||||
livereload: true
|
livereload: true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user