added webpack

This commit is contained in:
zadam
2020-04-12 14:22:51 +02:00
parent 3c311cd2a4
commit 339f212e4c
28 changed files with 1774 additions and 244 deletions

View File

@@ -45,6 +45,7 @@ app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));
app.use('/libraries', express.static(path.join(__dirname, '..', 'libraries')));
app.use('/images', express.static(path.join(__dirname, '..', 'images')));
app.use('/dist', express.static(path.join(__dirname, '..', 'dist')));
const sessionParser = session({
secret: sessionSecret,
resave: false, // true forces the session to be saved back to the session store, even if the session was never modified during the request.