mirror of
https://github.com/Mailu/Mailu.git
synced 2025-02-13 13:28:30 +02:00
Merge #3739
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:
commit
aecbd4632d
@ -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/'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user