Skip to content

Instantly share code, notes, and snippets.

Last active October 14, 2015 09:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
var gulp = require('gulp');
// etc.
gulp.task('dev', ['browsersync', 'html-watch', 'img-watch', 'css-watch', 'js-watch']);
gulp.task('dist', ['clean', 'html-compile', 'img-optimize', 'css-compile', 'js-transpile']);
// etc.
var config = require('./config');
var gulp = require('gulp');
var watch = require('gulp-watch');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var postcss = require('gulp-postcss');
var autoprefixer = require('autoprefixer');
* Task: CSS Compile
gulp.task('css-compile', function() {
.pipe(sass().on('error', sass.logError))
* Task: CSS Watch
gulp.task('css-watch', ['css-compile'], function() {
watch([config.paths.css.globWatch], function() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment