Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var gulp = require('gulp'),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-clean-css'),
notify = require('gulp-notify'),
rename = require('gulp-rename'),
csso = require('gulp-csso'),
shorthand = require('gulp-shorthand'),
uncss = require('gulp-uncss');
gulp.task('styles', function() {
var paths = {
sassSrcPath: 'source/scss/**/*.scss',
sassDestPath: 'deploy/c',
sassImportsPath: 'source/scss/'
return gulp.src(paths.sassSrcPath)
precision: 4
}).on('error', sass.logError))
.pipe(autoprefixer('last 2 version'))
.pipe(rename({suffix: '.min'}))
html: ['deploy/**/*.html'],
ignore: [
restructure: false // clobbered ::-o-prefocus
shorthandCompacting: false // it was merging rems over pixels
.pipe(notify({ message: 'Styles task complete' }));
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.