1.0.0 • Published 7 years ago
css-scope v1.0.0
CSS-scope
This module puts given css input in scope of a class
/* module-a.css */
p {
color: white;
}
var scopePrefix = '.module-a';
var cssContent = fs.readFile('module-a.css', ...);
var scopedCss = scope(cssContent, scopePrefix, options);
Results in
.module-a p {
color: white;
}
1.0.0
7 years ago