0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gitbook-extを使ってGitBookのminify

0
Last updated at Posted at 2017-06-14

追記[2017-06-15]: プラグイン。
GitBookのHTMLをminifyするplugin - Qiita


GitBookは標準でminifyに対応していないのとpluginも今のところないみたいなので、今回はGitBookのminify用に作られたコマンドラインツールgitbook-extを使ったやり方です。
HTML、CSS、JSがminifyされます。

gitbook-extのインストール

npmを使ってグローバルにインストール

$ npm install gitbook-ext -g

手順

  1. 通常通りビルド
  2. gitbook-extを使ってminify
# 1. 通常通りビルド
$ gitbook build

# 2. gitbook-extを使ってminify
$ gitbook-ext minify _book

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?