Updated version in pacage file and added compression to server requests.
This commit is contained in:
		| @@ -1,7 +1,7 @@ | ||||
| { | ||||
|   "name": "seasoned-request", | ||||
|   "description": "seasoned request app", | ||||
|   "version": "2.0.0", | ||||
|   "version": "1.0.0", | ||||
|   "author": "Kevin Midboe", | ||||
|   "private": true, | ||||
|   "scripts": { | ||||
|   | ||||
| @@ -1,9 +1,11 @@ | ||||
| var express = require('express'); | ||||
| var path = require('path'); | ||||
| const compression = require('compression') | ||||
| var history = require('connect-history-api-fallback'); | ||||
|  | ||||
| app = express(); | ||||
|  | ||||
| app.use(compression()) | ||||
| app.use('/dist', express.static(path.join(__dirname + "/dist"))); | ||||
| app.use('/dist', express.static(path.join(__dirname + "/dist/"))); | ||||
| app.use('/favicons', express.static(path.join(__dirname + "/favicons"))); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user