fixing client

This commit is contained in:
2025-09-17 01:31:53 +02:00
parent 763fe7f261
commit 91012d51e7
13 changed files with 186 additions and 119 deletions
+8 -6
View File
@@ -65,10 +65,10 @@ config.optimization = {
// Performance optimization
config.performance = {
...(config.performance || {}),
// Increase hint limits for WASM (which is naturally larger)
maxAssetSize: 2000000, // 2MB for individual assets
maxEntrypointSize: 2000000, // 2MB for entrypoints
hints: 'warning'
// Realistic hint limits for WASM bundles (which are naturally larger)
maxAssetSize: 20000000, // 20MB for individual assets (WASM files can be large)
maxEntrypointSize: 5000000, // 5MB for entrypoints
hints: 'warning' // Show warnings but don't fail the build
};
// Resolve optimization for faster builds
@@ -95,8 +95,10 @@ if (config.mode === 'production') {
// Production-specific optimizations
config.output = {
...(config.output || {}),
// Better file names for caching
filename: '[name].[contenthash:8].js',
// Use conditional filename to match HTML template expectations for main chunk only
filename: (chunkData) => {
return chunkData.chunk.name === 'main' ? 'meldestelle-wasm.js' : '[name].[contenthash:8].js';
},
chunkFilename: '[name].[contenthash:8].chunk.js'
};