Skip to content
PostHTML transform for Stakit
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.npmrc
index.js
minify.js
package.json
readme.md

readme.md

stakit-posthtml

PostHTML transforms for Stakit

Installation

npm i stakit-posthtml

Example

var stakit = require('stakit')
var posthtml = require('stakit-posthtml')
var minify = require('stakit-posthtml/minify')
var minifier = require('posthtml-minifier')

stakit()
  .transform(posthtml, {
    use: [minifier]
  })
  // or
  .transform(minify)
  .output()

The posthtml-minifier plugin is included because it's a very common use-case.

You can’t perform that action at this time.