We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8cf314 commit 8830b85Copy full SHA for 8830b85
scripts/start.js
@@ -57,14 +57,19 @@ function formatMessage(message) {
57
.replace('./~/css-loader!./~/postcss-loader!', '');
58
}
59
60
-var compiler = webpack(config, handleCompile);
61
-compiler.plugin('done', function (stats) {
62
- // Clear the console and reset the cursor
+function clearConsole() {
63
process.stdout.write('\x1B[2J\x1B[0f');
+}
64
+var compiler = webpack(config, handleCompile);
65
+compiler.plugin('invalid', function () {
66
+ clearConsole();
67
+ console.log('Compiling...');
68
+});
69
+compiler.plugin('done', function (stats) {
70
71
var hasErrors = stats.hasErrors();
72
var hasWarnings = stats.hasWarnings();
-
73
if (!hasErrors && !hasWarnings) {
74
console.log(chalk.green('Compiled successfully!'));
75
console.log();
0 commit comments