fixing web-app

This commit is contained in:
stefan
2025-09-18 12:58:45 +02:00
parent 9204163120
commit 142a624665
9 changed files with 25 additions and 58 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
// Development server configuration with API proxy
// This forwards API requests from webpack-dev-server to the gateway
const path = require('path');
if (config.mode !== 'production') {
config.devServer = {
@@ -33,7 +34,7 @@ if (config.mode !== 'production') {
// Static files configuration
static: {
directory: 'src/commonMain/resources',
directory: path.resolve(__dirname, '../../build/dist/wasmJs/developmentExecutable'),
serveIndex: true,
watch: true
},
+2 -3
View File
@@ -1,14 +1,13 @@
// WASM Bundle Size Optimization Configuration
// Advanced Webpack configuration for smaller WASM bundles
const path = require('path');
//const path = require('path');
// Bundle size optimization configuration
config.optimization = {
...(config.optimization || {}),
// Enable aggressive tree shaking
usedExports: true,
sideEffects: false,
sideEffects: true,
// Split chunks for better caching and smaller initial bundle
splitChunks: {