Authored by 姜枫

add express gzip

... ... @@ -13,6 +13,7 @@ const yohoLib = require('yoho-node-lib');
const express = require('express');
const path = require('path');
const compression = require('compression');
const bodyParser = require('body-parser');
const cookieParser = require('cookie-parser');
const favicon = require('serve-favicon');
... ... @@ -63,6 +64,7 @@ app.use(bodyParser.urlencoded({
extended: false
}));
app.use(cookieParser());
app.use(compression());
app.use(session({
name: 'yohobuy_session_cookie',
... ...
... ... @@ -21,6 +21,7 @@
"bluebird": "^3.4.6",
"body-parser": "^1.15.2",
"cheerio": "^0.22.0",
"compression": "^1.6.2",
"connect-multiparty": "^2.0.0",
"cookie-parser": "^1.4.3",
"cookie-session": "^1.2.0",
... ...