Add gulp-autoprefixer as dependency to package.json and as function in gulpfile.js

This commit is contained in:
Alex Wright 2018-02-15 08:57:02 -06:00
parent 7b1f482f87
commit 8f0786e39f
2 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,7 @@ var del = require('del');
var cleanCSS = require('gulp-clean-css'); var cleanCSS = require('gulp-clean-css');
var gulpSequence = require('gulp-sequence'); var gulpSequence = require('gulp-sequence');
var replace = require('gulp-replace'); var replace = require('gulp-replace');
var autoprefixer = require('gulp-autoprefixer');
// Configuration file to keep your code DRY // Configuration file to keep your code DRY
var cfg = require('./gulpconfig.json'); var cfg = require('./gulpconfig.json');
@ -87,6 +88,7 @@ gulp.task('sass', function () {
} }
})) }))
.pipe(sass()) .pipe(sass())
.pipe(autoprefixer('last 2 versions'))
.pipe(gulp.dest(paths.css)) .pipe(gulp.dest(paths.css))
.pipe(rename('custom-editor-style.css')) .pipe(rename('custom-editor-style.css'))
return stream; return stream;

View File

@ -51,6 +51,7 @@
"merge2": "^1.2.1", "merge2": "^1.2.1",
"popper.js": "^1.13.0", "popper.js": "^1.13.0",
"run-sequence": "^2.2.1", "run-sequence": "^2.2.1",
"undescores-for-npm": "^1.0.0" "undescores-for-npm": "^1.0.0",
"gulp-autoprefixer": "^4.1.0"
} }
} }