Remove CSS attributes from stylesheets that you do not have full control.
It is useful to completly remove styles from libraries like Bootstrap and Semantic UI instead of having to overwrite them with custom CSS.
$ npm install --save-dev gulp-css-remove-attributes
var gulp = require('gulp');
var removeAttributes = require('gulp-css-remove-attributes')
// in this example the box-shadow and text-transform attributes will not be
// present in the generated CSS file
gulp.task('default', function () {
return gulp.src('src/*.css')
.pipe(removeAttributes(['box-shadow', 'text-transform'], {compress: true}))
.pipe(gulp.dest('dist'));
});
Type:
array
CSS attributes that should be removed from the input files.
Type:
object
Options that are forwarded to css library.
Probably only
compress
andindent
options will be useful in the context of this plugin.