fixing frontedn docker build
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user