gulp-css-sandbox

0.0.2 • Public • Published

gulp-css-sandbox

NPM version Build Status Coverage Status Dependency Status

A plugin for gulp to sandbox css by prefixing rules with a selector

Usage

First, install gulp-css-sandbox as a development dependency:

npm install --save-dev gulp-css-sandbox

Then, add it to your gulpfile.js:

var css-sandbox = require("gulp-css-sandbox");
 
gulp.src("./src/*.css")
    .pipe(css-sandbox('#sandbox'))
    .pipe(gulp.dest("./dist"));

API

css-sandbox(prefix)

The prefix you want to attach to the css rules

License

MIT License

/gulp-css-sandbox/

    Package Sidebar

    Install

    npm i gulp-css-sandbox

    Weekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    10 kB

    Total Files

    12

    Last publish

    Collaborators

    • beefo