1.0.2 • Published 6 years ago

gg-gulp-css-wrap v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

gg-gulp-css-wrap

gulp plugin to wrap CSS rules in a namespace, using css-wrap

Installation

Install package with NPM and add it to your development dependencies:

npm install --save-dev gg-gulp-css-wrap

Usage

Options are directly passed to the css-wrap constructor so all the css-wrap options are available.

var cssWrap = require('gg-gulp-css-wrap');

gulp.task('css-wrap', function() {
  return gulp.src('src/*.css')
    .pipe(cssWrap({selector:'.my-app'}))
    .pipe(gulp.dest('dist'));
});