Skip to content

Instantly share code, notes, and snippets.

@matthamil
Created August 22, 2016 15:26
Show Gist options
  • Save matthamil/f008485777d30d681426a43b1c871e10 to your computer and use it in GitHub Desktop.
Save matthamil/f008485777d30d681426a43b1c871e10 to your computer and use it in GitHub Desktop.
'use strict';
const gulp = require('gulp');
const sass = require('gulp-sass');
gulp.task('sass', () => {
return gulp.src('./src/sass/quiz.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./src/compiled-css'));
});
gulp.task('sass:watch', () => {
gulp.watch('./src/sass/*.scss', ['sass']);
});
gulp.task('default', ['sass']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment