jonkemp / gulp-useref

Parse build blocks in HTML files to replace references to non-optimized scripts or stylesheets.
MIT License
705 stars 93 forks source link

block $.size to output log #128

Closed brucejcw closed 8 years ago

brucejcw commented 8 years ago

logs will output when the task finish, not after each html complete

 return gulp.src(path.join(conf.paths.tmp, '/serve/**/*.html'))
        .pipe(assets)
        .pipe($.rev())
        .pipe($.if('*.js', $.uglify()))
        .pipe($.if('*.css', $.minifyCss({
            compatibility: '*'
        })))
        .pipe(assets.restore())
        .pipe($.useref())
        .pipe($.revReplace())
        .pipe($.if('*.html', $.minifyHtml({
            conditionals: true,
            loose: true
        })))
        .pipe(gulp.dest(path.join(conf.paths.dist, '/')))
        .pipe($.size({
            title: 'html: ' + path.join(conf.paths.dist, '/'),
            showFiles: true
        }));
jonkemp commented 8 years ago

Is this a question or a request?

jonkemp commented 8 years ago

Closing.