fixing frontedn docker build

This commit is contained in:
stefan
2025-09-30 13:22:48 +02:00
parent 41bc894a19
commit 30ae7230de
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ tasks.withType<Zip> {
// Ensure copy/sync-based distribution tasks exclude duplicates (e.g., index.html from resources and HtmlWebpackPlugin) // Ensure copy/sync-based distribution tasks exclude duplicates (e.g., index.html from resources and HtmlWebpackPlugin)
tasks.withType<Copy> { tasks.withType<Copy> {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE duplicatesStrategy = DuplicatesStrategy.WARN // Statt EXCLUDE
} }
tasks.withType<Sync> { tasks.withType<Sync> {
@@ -11,6 +11,7 @@
</head> </head>
<body> <body>
<div id="ComposeTarget"></div> <div id="ComposeTarget"></div>
<script src="web-app.js"></script>
<script> <script>
if ('serviceWorker' in navigator) { if ('serviceWorker' in navigator) {
const isLocalhost = ['localhost', '127.0.0.1', '::1'].includes(location.hostname); const isLocalhost = ['localhost', '127.0.0.1', '::1'].includes(location.hostname);
@@ -9,8 +9,10 @@ config.plugins.push(new HtmlWebpackPlugin({
template: templatePath, template: templatePath,
filename: 'index.html', filename: 'index.html',
inject: 'body', inject: 'body',
scriptLoading: 'blocking',
// Optimierung hinzufügen // Optimierung hinzufügen
minify: { minify: false
/*{
removeComments: true, removeComments: true,
collapseWhitespace: true, collapseWhitespace: true,
removeRedundantAttributes: true, removeRedundantAttributes: true,
@@ -21,7 +23,7 @@ config.plugins.push(new HtmlWebpackPlugin({
minifyJS: true, minifyJS: true,
minifyCSS: true, minifyCSS: true,
minifyURLs: true, minifyURLs: true,
} }*/
})); }));
// Bundle-Analyse für Development // Bundle-Analyse für Development