Skip to content

Commit 8e8e990

Browse files
Prints a message to standard output whenever a watched file changes.
1 parent 714b1cb commit 8e8e990

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ function cli(process, beforeMinifyCallback) {
150150
var inputPaths = expandedGlobs.map(function (path) { return path.expanded; });
151151

152152
minify(process, options, configurations, expandedGlobs);
153-
require('chokidar').watch(inputPaths).on('change', function () {
153+
require('chokidar').watch(inputPaths).on('change', function (pathToChangedFile) {
154+
console.log(`File '${pathToChangedFile}' has changed. Rerunning all optimizations...`)
154155
minify(process, options, configurations, expandedGlobs);
155156
});
156157
} else {

0 commit comments

Comments
 (0)