Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

Commit

Permalink
add compression to express and minficatation of html (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
butlerx authored Oct 11, 2016
1 parent 8fd908b commit c92e7ef
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 9 deletions.
38 changes: 33 additions & 5 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,46 @@ feed:

# Extensions
## Plugins: https://hexo.io/plugins/
neat_enable: true
neat_html:
enable: false
neat_css:
hfc_html:
enable: true
hfc_css:
enable: true
exclude:
- '*.min.css'
neat_js:
hfc_js:
enable: true
mangle: true
exclude:
- '*.min.js'
hfc_favicons:
enable: true
src: assets/images/logo.png
target: /
icons:
android: true
appleIcon: true
appleStartup: false
coast: false
favicons: true
firefox: false
opengraph: false
windows: true
yandex: false
hfc_img:
enable: true
interlaced: false
multipass: false
optimizationLevel: 2
pngquant: false
progressive: false
webp: true
webpQuality: 75
gifslice: true
jpegtran: true
jpegrecompress: false
jpegrecompressQuality: 'medium'
optipng: true
svgo: true
## Themes: https://hexo.io/themes/
theme: redbrick-theme

Expand Down
2 changes: 2 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require('dotenv-safe').load();

const express = require('express');
const compression = require('compression');
const path = require('path');
const favicon = require('serve-favicon');
const morgan = require('morgan');
Expand Down Expand Up @@ -48,6 +49,7 @@ app.use(morgan('combined', {
stream: accessLogStream
}));
app.use(bodyParser.json());
app.use(compression());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"hexo-cli-extras": "^1.0.3",
"hexo-deployer-git": "^0.1.0",
"hexo-deployer-rsync": "^0.1.1",
"hexo-filter-cleanup": "^1.0.6",
"hexo-front-matter": "^0.2.3",
"hexo-generator-archive": "^0.1.4",
"hexo-generator-category": "^0.1.3",
Expand All @@ -44,7 +45,6 @@
"hexo-generator-json-content": "^2.1.3",
"hexo-generator-search": "^1.0.2",
"hexo-generator-tag": "^0.2.0",
"hexo-neat": "^1.0.4",
"hexo-pdf": "^1.1.0",
"hexo-renderer-ejs": "^0.2.0",
"hexo-renderer-marked": "^0.2.10",
Expand Down
5 changes: 2 additions & 3 deletions source/help/exams/helpdesk-test-2010-agm/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ Shit in a bag! it's the...
E) Des Moines, Iowa

8\. Get out of this one tonto.

```
Sent in some master mind flayers.

----- ---------
Expand All @@ -326,5 +326,4 @@ Shit in a bag! it's the...

Spoot the Rambler St:13 Dx:9 Co:18 In:14 Wi:7 Ch:14 Neutral
Dlvl:1 $:469 HP:9(10) Pw:2(2) AC:10 Exp:1

</pre>
```

0 comments on commit c92e7ef

Please sign in to comment.