0.1.1 • Published 1 year ago

@fmfi-uk-1-ain-412/isolate-css v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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]
0.1.1

1 year ago

0.1.0

2 years ago