Skip to content

Commit

Permalink
CLI: preserve history on start (#12)
Browse files Browse the repository at this point in the history
* Don't wipe scrollback history on start

When using sirv together with some watching rebuilder like rollup (e.g. in svelte framework), sirv's wiping of the scrollback buffer makes it impossible to access build warnings.

* update comment
  • Loading branch information
MarSoft authored and lukeed committed Sep 5, 2018
1 parent 35fe1a5 commit 11ad541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sirv-cli/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = function (dir, opts) {
if (err) throw err;
if (opts.quiet) return;

clear(); // wipe screen
clear(true); // wipe screen, but not history
let { local, network } = access({ port, https });
stdout.write('\n' + PAD + colors.green('Your application is ready~! 🚀\n\n'));
isOther && stdout.write(PAD + colors.italic.dim(`➡ Port ${opts.port} is taken; using ${port} instead\n\n`));
Expand Down

0 comments on commit 11ad541

Please sign in to comment.