Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages