1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-02-13 13:28:30 +02:00
3739: Fix the webpack build due to dependOn issue r=mergify[bot] a=kaiyou

## 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


Co-authored-by: kaiyou <dev@kaiyou.fr>
This commit is contained in:
bors-mailu[bot] 2025-01-29 11:36:51 +00:00 committed by GitHub
commit aecbd4632d
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/'),