@fmfi-uk-1-ain-412/isolate-css

0.1.1 • Public • Published

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]

Readme

Keywords

none

Package Sidebar

Install

npm i @fmfi-uk-1-ain-412/isolate-css

Weekly Downloads

0

Version

0.1.1

License

ISC

Unpacked Size

8.46 kB

Total Files

4

Last publish

Collaborators

  • 4zzz
  • jan.kluka