Add frontend

This commit is contained in:
Andras Schmelczer 2026-01-25 21:07:48 +00:00
parent ab704c0dc0
commit 77c9a40dbf
17 changed files with 9388 additions and 0 deletions

View file

@ -0,0 +1,41 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './src/index.jsx',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js',
clean: true,
},
resolve: {
extensions: ['.js', '.jsx'],
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
use: 'babel-loader',
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader', 'postcss-loader'],
},
],
},
plugins: [
new HtmlWebpackPlugin({
template: './src/index.html',
}),
],
devServer: {
port: 3000,
proxy: [
{
context: ['/api'],
target: 'http://localhost:8001',
},
],
},
};