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

This commit is contained in:
iamBadgers
2024-06-07 23:34:47 -07:00
parent 02a83987e2
commit fa17f77e5b
6 changed files with 6 additions and 51 deletions

2
.gitignore vendored
View File

@@ -1,6 +1,6 @@
.DS_Store
node_modules
frontent/dist
frontend/dist
backend/dist
loader/venv
# sqlite file

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()

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(),

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@