scopecss

0.0.3 • Public • Published

Scopecss

Scope the css by custom prefix (e.g.: component name)

Useage

var scopecss = require('scopecss')
var cssResource = '.nearby-place-list-content { color: red}';
var prefix = 'my_component_prefix';
 
scopecss(prefix, cssResource);
//return: .my_component_prefix .nearby-place-list-content { color: red}

Install

npm install scopecss

Test

npm test

Readme

Keywords

Package Sidebar

Install

npm i scopecss

Weekly Downloads

0

Version

0.0.3

License

BSD-2-Clause

Last publish

Collaborators

  • sking7