Updated version in pacage file and added compression to server requests.

This commit is contained in:
2019-06-05 00:10:25 +02:00
parent 4fada32d14
commit 9ec6e36677
2 changed files with 3 additions and 1 deletions

View File

@@ -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": {

View File

@@ -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")));