We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9784f7a commit 4b05984Copy full SHA for 4b05984
index.js
@@ -114,6 +114,8 @@ var path = require('path');
114
var postcss = require('postcss');
115
var processor = postcss(plugins);
116
117
+// hook for dynamically updating the list of watched files
118
+global.watchCSS = function() {}; // jshint ignore:line
119
if (argv.watch) {
120
var watchedFiles = inputFiles;
121
var watcher = require('chokidar').watch(watchedFiles);
@@ -128,12 +130,9 @@ if (argv.watch) {
128
130
watcher.add(files);
129
131
watchedFiles = files;
132
};
-} else {
- global.watchCSS = function() {}; // jshint ignore:line
133
}
134
async.forEach(inputFiles, compile, onError);
135
136
-
137
function compile(input, fn) {
138
var output = argv.output;
139
if (argv.dir) {
0 commit comments