Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 8c7a4f4

Browse files
authored
refactor: improve build/watch messages (#363)
1 parent e244cae commit 8c7a4f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: plugins/WatchStateLoggerPlugin.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
export enum messages {
3-
compilationComplete = "Webpack compilation complete. Watching for file changes.",
3+
compilationComplete = "Webpack compilation complete.",
4+
startWatching = "Webpack compilation complete. Watching for file changes.",
45
changeDetected = "File change detected. Starting incremental webpack compilation..."
56
}
67

@@ -23,6 +24,8 @@ export class WatchStateLoggerPlugin {
2324
compiler.plugin("after-emit", function(compilation, callback) {
2425
callback();
2526
if (plugin.isRunningWatching) {
27+
console.log(messages.startWatching);
28+
} else {
2629
console.log(messages.compilationComplete);
2730
}
2831
process.send && process.send(messages.compilationComplete, error => null);

0 commit comments

Comments
 (0)