Add gulp-autoprefixer

Fixes #16
This commit is contained in:
Oliver Davies 2016-04-05 21:17:57 +01:00
parent 949a2d8106
commit f7159f54e8
2 changed files with 4 additions and 0 deletions

View file

@ -22,6 +22,9 @@ app.css = function (paths, filename) {
.pipe(plugins.sourcemaps.init()) .pipe(plugins.sourcemaps.init())
.pipe(plugins.sassGlob()) .pipe(plugins.sassGlob())
.pipe(plugins.sass()) .pipe(plugins.sass())
.pipe(plugins.autoprefixer({
browsers: ['last 2 versions']
}))
.pipe(plugins.concat(filename)) .pipe(plugins.concat(filename))
.pipe(config.production ? plugins.cleanCss() : plugins.util.noop()) .pipe(config.production ? plugins.cleanCss() : plugins.util.noop())
.pipe(plugins.if(config.sourceMaps, plugins.sourcemaps.write('.'))) .pipe(plugins.if(config.sourceMaps, plugins.sourcemaps.write('.')))

View file

@ -4,6 +4,7 @@
"coffee-script": "^1.10.0", "coffee-script": "^1.10.0",
"del": "^2.2.0", "del": "^2.2.0",
"gulp": "^3.9.0", "gulp": "^3.9.0",
"gulp-autoprefixer": "^3.1.0",
"gulp-clean": "^0.3.1", "gulp-clean": "^0.3.1",
"gulp-clean-css": "^2.0.4", "gulp-clean-css": "^2.0.4",
"gulp-concat": "^2.6.0", "gulp-concat": "^2.6.0",