Skip to content

Commit

Permalink
Use gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
johno committed Aug 25, 2016
1 parent affae87 commit 5590b02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.js
Expand Up @@ -4,6 +4,7 @@ var fs = require('fs');
var favicon = require('serve-favicon');
var logger = require('morgan');
var bodyParser = require('body-parser');
var compression = require('compression');

var handlebars = require('express-handlebars');
var session = require('express-session');
Expand All @@ -14,6 +15,8 @@ var parse = require('./routes/parse');

var app = express();

app.use(compression());

// view engine setup
app.engine('handlebars', handlebars({
handlebars: require('handlebars'),
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -6,6 +6,7 @@
"camel-case": "^1.2.2",
"chartable": "0.0.1",
"cheerio": "^0.18.0",
"compression": "^1.6.2",
"cookie-parser": "~1.3.3",
"cssbeautify": "^0.3.1",
"cssstats": "^2.2.0",
Expand Down

0 comments on commit 5590b02

Please sign in to comment.