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 .DS_Store
node_modules node_modules
frontent/dist frontend/dist
backend/dist backend/dist
loader/venv loader/venv
# sqlite file # sqlite file

View File

@@ -132,7 +132,10 @@ app.post('/api/serverstats/rolestats', jsonParser, async (req, res) => {
res.send(result) 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 () => { app.listen(port, async () => {
await database.authenticate() await database.authenticate()

View File

@@ -18,7 +18,7 @@ module.exports = {
}, },
output: { output: {
filename: 'bundle.js', filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'), path: path.resolve(__dirname, '../dist'),
}, },
plugins: [ plugins: [
new NodePolyfillPlugin(), new NodePolyfillPlugin(),

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@