Skip to content

Commit

Permalink
Fixes gulpfile to parallelize hologram and sass builds
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiopro committed Jan 8, 2017
1 parent 42de3c7 commit 8868812
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ const hologram = require('./gulp-hologram');
const SOURCES = './sass/*.scss';
const DEST = './css';

gulp.task('default', ['sass', 'watch']);
gulp.task('default', ['sass', 'hologram', 'watch']);

gulp.task('sass', () => {
gulp.src(SOURCES)
.pipe(hologram())
.pipe(sass())
.pipe(autoprefixer({
browsers: ['last 2 versions'],
Expand All @@ -22,6 +21,11 @@ gulp.task('sass', () => {
.pipe(gulp.dest(DEST));
});

gulp.task('hologram', () => {
gulp.src(SOURCES)
.pipe(hologram());
});

gulp.task('watch', () => {
gulp.watch(SOURCES, ['sass']);
gulp.watch(SOURCES, ['sass', 'hologram']);
});

0 comments on commit 8868812

Please sign in to comment.