Skip to content
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.

Commit

Permalink
Display space optimization achieved
Browse files Browse the repository at this point in the history
Ref #24
  • Loading branch information
jbrodriguez committed Dec 12, 2017
1 parent ff473e7 commit ea6e79a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gulp/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ gulp.task('styles:cleancss', function() {
.pipe(autoprefixer(config.autoprefixer))
.pipe(cleancss(config.cleancss))
.pipe(concat('styles.css'))
.pipe(size({ title: 'styles: ' }))
.pipe(gulp.dest(path.join(config.build.target, config.path.styles))) // i.e.: public/styles/styles.css
})

Expand All @@ -88,6 +89,7 @@ gulp.task('scripts', function() {
.pipe(jshint())
.pipe(jshint.reporter('default'))
.pipe(uglify())
.pipe(size({ title: 'scripts: ' }))
.pipe(gulp.dest(path.join(config.build.target, config.path.scripts)))
})

Expand Down Expand Up @@ -136,6 +138,7 @@ gulp.task('html', function(cb) {
[
gulp.src(path.join(config.build.source, '**', '*.html')),
htmlmin(config.htmlmin),
size({ title: 'html: ' }),
gulp.dest(config.build.target)
],
cb
Expand Down

0 comments on commit ea6e79a

Please sign in to comment.