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)
tasks.withType<Copy> {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
duplicatesStrategy = DuplicatesStrategy.WARN // Statt EXCLUDE
}
tasks.withType<Sync> {
@@ -11,6 +11,7 @@
</head>
<body>
<div id="ComposeTarget"></div>
<script src="web-app.js"></script>
<script>
if ('serviceWorker' in navigator) {
const isLocalhost = ['localhost', '127.0.0.1', '::1'].includes(location.hostname);
@@ -9,8 +9,10 @@ config.plugins.push(new HtmlWebpackPlugin({
template: templatePath,
filename: 'index.html',
inject: 'body',
scriptLoading: 'blocking',
// Optimierung hinzufügen
minify: {
minify: false
/*{
removeComments: true,
collapseWhitespace: true,
removeRedundantAttributes: true,
@@ -21,7 +23,7 @@ config.plugins.push(new HtmlWebpackPlugin({
minifyJS: true,
minifyCSS: true,
minifyURLs: true,
}
}*/
}));
// Bundle-Analyse für Development