CLI for PostHTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.editorconfig
.gitignore
.npmignore
.travis.yml
appveyor.yml
changelog.md
license
package-lock.json
package.json
readme.md

readme.md

posthtml-cli

PostHTML сommand line interface

Trasiv Build StatusAppVeyor Build StatusnodeNPM versionDependency StatusXO code styleCoveralls Status

npm downloadsnpmPackage Quality

Install

$ npm install --global posthtml-cli

Note: This project is compatible with node v6+

Usage

$ posthtml --help

  Usage: 
    $ posthtml <patterns>

  Options:
    --output -o    Output File or Folder
    --config -c    Path to config file
    --use -u       PostHTML plugin name
    --help -h      CLI Help
    --version -v   CLI Version

  Examples:
    $ posthtml input.html
    $ posthtml input.html -o output.html
    $ posthtml inputFolder/*.html !unicorn.html
    $ posthtml input.html -o output.html -c posthtml.js
    $ posthtml input.html -o output.html -u posthtml-bem --posthtml-bem.elemPrefix __
    $ posthtml inputFolder/*.html -o outputFolder
    $ posthtml inputFolder/**/*.html -o outputFolder

Note: This package does not respect the order of patterns. First, all the negative patterns are applied, and only then the positive patterns.

Note: Automatically loads plug-ins with configuration from package.json using post-load-plugins if not used --auto-off key