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

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy