Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 78a74e9

Browse files
committed
Don't emit info output in quiet mode
1 parent dd805fc commit 78a74e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bin/node-sass

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ function run(options, emitter) {
328328
*/
329329
function renderFile(file, options, emitter) {
330330
options = getOptions([path.resolve(file)], options);
331-
if (options.watch) {
331+
if (options.watch && !options.quiet) {
332332
emitter.emit('info', util.format('=> changed: %s', file));
333333
}
334334
render(options, emitter);
@@ -355,7 +355,9 @@ function renderDir(options, emitter) {
355355
renderFile(subject, options, emitter);
356356
}, function(successful, arr) {
357357
var outputDir = path.join(process.cwd(), options.output);
358-
emitter.emit('info', util.format('Wrote %s CSS files to %s', arr.length, outputDir));
358+
if (!options.quiet) {
359+
emitter.emit('info', util.format('Wrote %s CSS files to %s', arr.length, outputDir));
360+
}
359361
process.exit();
360362
});
361363
});

0 commit comments

Comments
 (0)