postcss-unprefix
Unprefixes vendor prefixes in legacy CSS.
Though, please use autoprefixer
as part of your build process to ensure proper browser support.
npm install --save postcss-unprefix
var postcss = require("gulp-html-postcss");
var unprefix = require("postcss-unprefix");
var autoprefixer = require("autoprefixer");
gulp.task("clear-css", function () {
var processors = [
unprefix,
autoprefixer,
];
return gulp.src("./src/**/*.css")
.pipe(postcss(processors))
.pipe(gulp.dest('./dest'));
});
.flex {
display: -webkit-flex;
display: -moz-flex;
-webkit-flex: 1;
}
.flex {
display: flex;
flex: 1;
}