Skip to content

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

License

Notifications You must be signed in to change notification settings

beefo/gulp-css-sandbox

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published