css-wrap

Wrap CSS rules in a namespace

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
css-wrap
450.1.08 years ago8 years agoMinified + gzip package size for css-wrap in KB

Readme

css-wrap
Wrap CSS rules in a namespace

Install

npm install grunt-css-wrap --save-dev

Usage

csswrap(string|file, options)
var
  css_wrap = require('css-wrap'),
  output = css_wrap('.some-css-selector { background: green; }', {
    selector: '.my-app'
  });
console.log(output)
// .my-app .some-css-selector {
//   background: green;
// }

Options

options.selector

Type: String Default value: .css-wrap
Provide a namespace selector in which to wrap CSS.

Changelog

v0.0.1 - Initial Release