From 7f1cb26fc16fad780950b18e629646fec1daa7fd Mon Sep 17 00:00:00 2001 From: curben Date: Sat, 6 Oct 2018 18:43:47 +0930 Subject: [PATCH] hexo-all-minifier prerequisite --- source/_posts/make-hexo-blog-smaller.md | 1 + 1 file changed, 1 insertion(+) diff --git a/source/_posts/make-hexo-blog-smaller.md b/source/_posts/make-hexo-blog-smaller.md index 46e554a..e35aa22 100644 --- a/source/_posts/make-hexo-blog-smaller.md +++ b/source/_posts/make-hexo-blog-smaller.md @@ -14,6 +14,7 @@ In Hexo, there are two approaches. ``` bash $ npm install hexo-all-minifier --save ``` +2. If there is any error during installation, run `$ sudo apt install libpng-dev` and `node node_modules/optipng-bin/lib/install.js`. 2. Above command will add hexo-all-minifer to your `package.json` and install it. 3. To enable it, put `all_minifier: true` line at `_config.yml`. 4. Deploy.