hexo-all-minifier prerequisite

This commit is contained in:
curben 2018-10-06 18:43:47 +09:30
parent 5f68d6d09c
commit 7f1cb26fc1
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ In Hexo, there are two approaches.
``` bash ``` bash
$ npm install hexo-all-minifier --save $ 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. 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`. 3. To enable it, put `all_minifier: true` line at `_config.yml`.
4. Deploy. 4. Deploy.