Simple gulp plugin/wrapper around css-prefix
npm install --save-dev gulp-css-prefixvar 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/'));
});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)