update gitignore to ignore dist file, remove dist files, update webpack and server statics

This commit is contained in:
iamBadgers committed 2024-06-07 23:37:39 -07:00
1 parent 02a83987e2
commit fa17f77e5b
6 files changed
+6 -51

No files matched your search

+4 -1
View File
@@ -132,7 +132,10 @@ app.post('/api/serverstats/rolestats', jsonParser, async (req, res) => {
res.send(result)
})
app.use('/', express.static('static'))
app.use(express.static(__dirname + '/frontend'))
app.use('/', (req, res) => {
res.sendFile(__dirname + '/frontend/index.html')
})
app.listen(port, async () => {
await database.authenticate()
+1 -1
View File
@@ -18,7 +18,7 @@ module.exports = {
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
path: path.resolve(__dirname, '../dist'),
},
plugins: [
new NodePolyfillPlugin(),