1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00

Previous fix only did delay the issue

My previous fix attempt only made it clear that the issue was
in the runtime and an upstream issue with Webpack, but did not
really fix things.

Since Webpack 5.96.0, especially since
420d0d0eed
Webpack does not generate JS for asset chunks, which breaks having
a single entry with both JS and asset chunks.

The logo can easily be moved to a separate entry.
This commit is contained in:
kaiyou
2025-01-29 11:48:39 +01:00
parent 2d151debb4
commit 0a3f6e5c2f

View File

@@ -9,10 +9,11 @@ module.exports = {
mode: 'production',
entry: {
app: {
import: ['./assets/app.css', './assets/mailu.png', './assets/app.js'],
import: ['./assets/app.css', './assets/app.js'],
dependOn: 'vendor',
},
vendor: './assets/vendor.js',
logo: './assets/mailu.png',
},
output: {
path: path.resolve(__dirname, 'static/'),
@@ -60,7 +61,6 @@ module.exports = {
],
optimization: {
minimize: true,
runtimeChunk: 'single',
minimizer: [
new terse(),
new mini({