gulp-css-prefix
v0.1.0
Published
Minify css with clean-css.
Downloads
202
Maintainers
Readme
gulp-css-prefix
Simple gulp plugin/wrapper around css-prefix
Installation
npm install --save-dev gulp-css-prefix
Usage
var gulp = require('gulp'),
cssPrefix = require('gulp-css-prefix');
gulp.task('build-css', function() {
return gulp.src('./static/css/*.css')
.pipe(cssPrefix('RAWR-'))
.pipe(gulp.dest('./dist/'))
});
Options
See css-prefix options as the record of truth.
For convenience:
prefix
- Insert this string before every class and id in the css source string srcelementClass
- add this class to all element identifiersparentClass
- add an ancestor class to every ruleparentId
- add an ancestor id to every rule (not yet, hopefully in v0.0.3)