autoprefix-cmd
A simple command wrapper around html-autoprefixer
with a few simple options.
I like Myth for CSS preprocessing. However, Myth doesn't like dealing with CSS inside tags. Myth does a lot. Polymer does too, except for prefixes. CSS prefixes are not fun; hence autoprefix-cmd
.
Installation
npm install autoprefix-cmd
Dependencies:
- glob
- commander
- html-autoprefixer
Usage
autoprefix-cmd --help
Usage: autoprefix-cmd [options]
Options:
-h, --help output usage information
-V, --version output the version number
-r, --root [path] search root
-i, --in [glob] search glob producing input file paths
-d, --dir [path] output directory
-p, --prefix [prefix] output filename prefix
-s, --suffix [suffix] output filename suffix
-q, --quotes replace double quotes with singles
Example
autoprefix-cmd -i **/*style* -d /project/dist/styles -q
This says, look for files with 'style' in the name, output the results to /project/dist/styles
, replace double quotes "
with single quotes '
, and don't modify the filename.
autoprefix-cmd -i **/*style* -q
would simply dump the results to the console.
Contributors
Sure, why not.
License
MIT. See LICENSE
file.