feat: Introduce a React-based frontend dashboard with Webpack and Babel for improved UI and development.

This commit is contained in:
sebseb7
2025-12-20 21:43:17 +01:00
parent 12be2c7bf9
commit bef70e4709
13 changed files with 5336 additions and 20 deletions

45
webpack.config.js Normal file
View File

@@ -0,0 +1,45 @@
import path from 'path';
import { fileURLToPath } from 'url';
import HtmlWebpackPlugin from 'html-webpack-plugin';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export default {
mode: 'development',
entry: './src/client/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: '/ac/'
},
module: {
rules: [
{
test: /\.m?js/,
resolve: {
fullySpecified: false
}
},
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader'
}
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
}
]
},
plugins: [
new HtmlWebpackPlugin({
template: './src/client/index.html'
})
],
resolve: {
extensions: ['.js', '.jsx']
}
};