use --live by default, if using Rollup or --no-hot

This commit is contained in:
Rich Harris
2018-08-29 22:19:53 -04:00
parent 3b098caa6e
commit 36f930f489
2 changed files with 5 additions and 5 deletions

View File

@@ -11,8 +11,8 @@ prog.command('dev')
.describe('Start a development server')
.option('-p, --port', 'Specify a port')
.option('-o, --open', 'Open a browser window')
.option('-l --live', 'Reload on changes', false)
.option('--hot', 'Use hot module replacement', true)
.option('--hot', 'Use hot module replacement (requires webpack)', true)
.option('-l --live', 'Reload on changes if not using --hot', true)
.option('--bundler', 'Specify a bundler (rollup or webpack)')
.action(async (opts: {
port: number,