@kaliber/build 0.0.116 → 0.0.117

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/lib/serve.js +2 -0
  2. package/package.json +2 -1
package/lib/serve.js CHANGED
@@ -4,6 +4,7 @@ const helmet = require('helmet')
4
4
  const { access } = require('fs')
5
5
  const { parsePath } = require('history')
6
6
  const { resolve } = require('path')
7
+ const morgan = require('morgan')
7
8
 
8
9
  const templateRenderers = require('./getTemplateRenderers')
9
10
 
@@ -30,6 +31,7 @@ const isProduction = process.env.NODE_ENV === 'production'
30
31
 
31
32
  const notCached = ['html', 'txt', 'json', 'xml']
32
33
 
34
+ if (isProduction) app.use(morgan('combined'))
33
35
  // hsts-headers are sent by our loadbalancer
34
36
  app.use(helmet(Object.assign({ hsts: false, contentSecurityPolicy: false }, helmetOptions)))
35
37
  app.use(compression())
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.116",
2
+ "version": "0.0.117",
3
3
  "name": "@kaliber/build",
4
4
  "description": "Zero configuration, opinionated webpack / react build setup",
5
5
  "scripts": {
@@ -62,6 +62,7 @@
62
62
  "import-fresh": "^3.2.1",
63
63
  "json-loader": "^0.5.7",
64
64
  "loader-utils": "^2.0.0",
65
+ "morgan": "^1.10.0",
65
66
  "npm-run-all": "^4.1.5",
66
67
  "pkg-dir": "^5.0.0",
67
68
  "postcss": "^7.0.34",