Added polyfill

This commit is contained in:
Sebastian Seedorf
2020-11-15 00:18:23 +01:00
parent 6189b95b6e
commit fc47d6ec26
11 changed files with 887 additions and 34 deletions

View File

@@ -6,7 +6,7 @@ import * as redisStore from 'connect-redis';
import * as session from 'express-session';
import * as sassMiddleware from 'node-sass-middleware';
import indexRouter from './routes';
import {HttpLogger, Redis, Config, setupAuthProxy, getReloadRouter} from './utils';
import {HttpLogger, Redis, Config, setupAuthProxy, getReloadRouter, polyfillRoute} from './utils';
import {Store} from 'express-session';
export const app = express();
@@ -46,6 +46,7 @@ router.use(session({
}));
// static config
router.use("/js/polyfill.js", polyfillRoute);
router.use(sassMiddleware({
src: path.join(__dirname, '../public'),
dest: path.join(__dirname, '../public'),