Skip to content

SKing7/scopedcss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

scope the css by custom prefix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages