ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit 34781f5b5c692236eb283f37e7089f19412c6aa9
parent 5bdd0a46c7fc2bde1e1043b26b7103b972e1ca39
Author: Konstantin Tarkus <hello@tarkus.me>
Date:   Thu,  7 May 2015 23:46:44 +0300

Print less info to the console on build

If you need more info, append `--verbose` flag

Diffstat:
Mgulpfile.js | 14+++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/gulpfile.js b/gulpfile.js @@ -55,15 +55,23 @@ gulp.task('bundle', function(cb) { var started = false; var config = require('./webpack.config.js'); var bundler = webpack(config); + var verbose = !!argv.verbose; function bundle(err, stats) { if (err) { throw new $.util.PluginError('webpack', err); } - if (argv.verbose) { - $.util.log('[webpack]', stats.toString({colors: true})); - } + console.log(stats.toString({ + colors: $.util.colors.supportsColor, + hash: verbose, + version: verbose, + timings: verbose, + chunks: verbose, + chunkModules: verbose, + cached: verbose, + cachedAssets: verbose + })); if (!started) { started = true;