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