Skip to content

Instantly share code, notes, and snippets.

@iign iign/gulpfile.js
Last active Nov 14, 2016

What would you like to do?
Basic Gulpfile
var gulp = require('gulp')
var sass = require('gulp-sass')
var autoprefixer = require('gulp-autoprefixer')
var browserSync = require('browser-sync').create()
gulp.task('sass', function () {
.pipe(sass({outputStyle: 'uncompressed'}).on('error', sass.logError))
.pipe(autoprefixer('last 3 versions', '> 1%', 'ie 8'))
// Compile sass into CSS & auto-inject into browsers
gulp.task('sass', function () {
return gulp.src('sass/*.scss')
// Static Server + watching scss/html files
gulp.task('serve', ['sass'], function () {
server: './'
})'sass/*.scss', ['sass'])'*.html').on('change', browserSync.reload)
gulp.task('default', ['serve'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.