gitbook-plugin-minifier

0.0.1 • Public • Published

GitBook minify Plugin

This is an minifier for GitBook plugin.

Run minify after the build.

It is powered by the html-minifier, clean-css and UglifyJS.

Usage

Installation

Add the plugin to your book.json:

{
  "plugins": ["minifier"]
}

and run install command

$ gitbook install

Optional configuration

You can add the following configuration params to your book.json:

{
  "plugins": ["minifier"],
  "pluginsConfig": {
    "minifier": {
      "html": {},
      "css": {},
      "js": {}
    }
  }
}

License

MIT License

Package Sidebar

Install

npm i gitbook-plugin-minifier

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

4.45 kB

Total Files

4

Last publish

Collaborators

  • imliwenfu