Skip to content

4zzz/isolate-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

isolate-css

CLI utility that isolates styles in css files. That means it modifies css rules so they are applied only inside element with specified class. This is achieved by using nesting functionality of less compiler. This utility is used in workbook project to isolate css of embedded apllications.

CLI options

isolate-css-cli [options] <file|dir> [[file|dir] ... ]
Options:
      --version             Show version number  [boolean]
  -u, --up                  slice a path off the bottom of the paths  [number]
  -e, --extensions          Comma separated list of extensions that should be processed (default: .css)  [string]
  -i, --ignore              Regular expression of paths to ignore  [string]
  -o, --out-dir             Directory where processed files should be saved  [string]
  -c, --create-out-dir      Create output directory if it doesn't exist  [boolean]
  -p, --prefix-class        Used prefix class to isolate css  [string]
  -f, --force               If output file already exists, rewrite it  [boolean]
  -r, --remove-source-maps  Remove source map references in output css  [boolean] [default: false]
  -h, --help                Show help  [boolean]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published