File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.0" ,
4
4
"main" : " server/index.js" ,
5
5
"dependencies" : {
6
+ "compression" : " ^1.7.1" ,
6
7
"core-js" : " ^2.4.1" ,
7
8
"cors" : " ^2.8.1" ,
8
9
"express" : " ^4.13.3" ,
45
46
"primus" : " ^7.0.1" ,
46
47
"primus-emit" : " ^1.0.0" ,
47
48
"uws" : " ^8.14.1" ,<% } %>
48
- "serve-favicon" : " ^2.3.0" ,
49
- "shrink-ray" : " ^0.1.3"
49
+ "serve-favicon" : " ^2.3.0"
50
50
},
51
51
"devDependencies" : {
52
52
<%# CLIENT %>
Original file line number Diff line number Diff line change 7
7
import express from 'express' ;
8
8
import favicon from 'serve-favicon' ;
9
9
import morgan from 'morgan' ;
10
- import shrinkRay from 'shrink-ray ' ;
10
+ import compression from 'compression ' ;
11
11
import bodyParser from 'body-parser' ;
12
12
import methodOverride from 'method-override' ;
13
13
import cookieParser from 'cookie-parser' ;
@@ -46,7 +46,7 @@ export default function(app) {
46
46
app . engine ( 'html' , require ( 'ejs' ) . renderFile ) ;
47
47
app . set ( 'view engine' , 'html' ) ; < % } % > < % if ( filters . pug ) { % >
48
48
app . set ( 'view engine' , 'pug' ) ; < % } % >
49
- app . use ( shrinkRay ( ) ) ;
49
+ app . use ( compression ( ) ) ;
50
50
app . use ( bodyParser . urlencoded ( { extended : false } ) ) ;
51
51
app . use ( bodyParser . json ( ) ) ;
52
52
app . use ( methodOverride ( ) ) ;
You can’t perform that action at this time.
0 commit comments