Updated version in pacage file and added compression to server requests.
This commit is contained in:
@@ -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