Skip to content

Commit 714b1cb

Browse files
When in watch mode run all optimizations on the first run.
1 parent 019c031 commit 714b1cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ function cli(process, beforeMinifyCallback) {
148148
var expandedGlobs = expandGlobs(program.args);
149149
if (inputOptions.watch) {
150150
var inputPaths = expandedGlobs.map(function (path) { return path.expanded; });
151+
152+
minify(process, options, configurations, expandedGlobs);
151153
require('chokidar').watch(inputPaths).on('change', function () {
152154
minify(process, options, configurations, expandedGlobs);
153155
});

0 commit comments

Comments
 (0)