A plugin for gulp to sandbox css by prefixing rules with a selector
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"));
The prefix you want to attach to the css rules