File tree 1 file changed +10
-10
lines changed 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,6 @@ module.exports = function(opts) {
22
22
arr . push ( compression ( ) )
23
23
}
24
24
25
- // Logger
26
- if ( opts . logger ) {
27
- arr . push (
28
- logger ( 'dev' , {
29
- skip : req =>
30
- process . env . NODE_ENV === 'test' || req . path === '/favicon.ico'
31
- } )
32
- )
33
- }
34
-
35
25
// Enable CORS for all the requests, including static files
36
26
if ( ! opts . noCors ) {
37
27
arr . push ( cors ( { origin : true , credentials : true } ) )
@@ -45,6 +35,16 @@ module.exports = function(opts) {
45
35
// Serve static files
46
36
arr . push ( express . static ( opts . static ) )
47
37
38
+ // Logger
39
+ if ( opts . logger ) {
40
+ arr . push (
41
+ logger ( 'dev' , {
42
+ skip : req =>
43
+ process . env . NODE_ENV === 'test' || req . path === '/favicon.ico'
44
+ } )
45
+ )
46
+ }
47
+
48
48
// No cache for IE
49
49
// https://support.microsoft.com/en-us/kb/234067
50
50
arr . push ( ( req , res , next ) => {
You can’t perform that action at this time.
0 commit comments