Add gulp-autoprefixer as dependency to package.json and as function in gulpfile.js
This commit is contained in:
parent
7b1f482f87
commit
8f0786e39f
|
@ -19,6 +19,7 @@ var del = require('del');
|
|||
var cleanCSS = require('gulp-clean-css');
|
||||
var gulpSequence = require('gulp-sequence');
|
||||
var replace = require('gulp-replace');
|
||||
var autoprefixer = require('gulp-autoprefixer');
|
||||
|
||||
// Configuration file to keep your code DRY
|
||||
var cfg = require('./gulpconfig.json');
|
||||
|
@ -87,6 +88,7 @@ gulp.task('sass', function () {
|
|||
}
|
||||
}))
|
||||
.pipe(sass())
|
||||
.pipe(autoprefixer('last 2 versions'))
|
||||
.pipe(gulp.dest(paths.css))
|
||||
.pipe(rename('custom-editor-style.css'))
|
||||
return stream;
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
"merge2": "^1.2.1",
|
||||
"popper.js": "^1.13.0",
|
||||
"run-sequence": "^2.2.1",
|
||||
"undescores-for-npm": "^1.0.0"
|
||||
"undescores-for-npm": "^1.0.0",
|
||||
"gulp-autoprefixer": "^4.1.0"
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue