css-prefix
Insert a prefix into css documents.
example
var fs = ;var src = fs;var insertPrefix = ;var dst = ;console;
beep.css:
output:
methods
var insertPrefix =
insertPrefix(opts, src)
Insert the string opts.prefix
before every class and id in the css source
string src
, returning the transformed source.
If opts.elementClass
is given, add this class to all element identifiers. This
is useful so that your h1 { color: green; }
declarations don't leak into the
environment.
If opts.parentClass
is given, add an ancestor class to every rule.
If opts
is a string, treat opts
as opts.prefix
.
install
With npm do:
npm install css-prefix
license
MIT