1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-02-09 13:23:54 +02:00
3740: Fix the webpack build due to dependOn issue (backport #3739) r=mergify[bot] a=mergify[bot]

## What type of PR?

Bug-fix

## What does this PR do?

As stated in Webpack documentation, when using multiple entrypoints and dependencies, it is recommended to export the runtime as a single separated chunk.

See: https://webpack.js.org/guides/code-splitting/#entry-dependencies

### Related issue(s)
- closes #3738 

## Prerequisites
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [x] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file. -> this is a minor build change
<hr>This is an automatic backport of pull request #3739 done by [Mergify](https://mergify.com).

Co-authored-by: kaiyou <dev@kaiyou.fr>
This commit is contained in:
bors-mailu[bot] 2025-01-29 19:34:46 +00:00 committed by GitHub
commit 93166f61b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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/'),