Skip to content

umi v4 不支持自定义 splitChunks 吗? #8513

Answered by Enivia
Enivia asked this question in Q&A
Discussion options

You must be logged in to vote

找到了,可以这样自定义 cacheGroups。

  chainWebpack(config) {
    config.optimization.splitChunks.merge({
      cacheGroups: {
        // ...
      },
    });
  },

文档需要补充额。

Replies: 3 comments 15 replies

Comment options

You must be logged in to vote
1 reply
@Enivia
Comment options

Comment options

You must be logged in to vote
11 replies
@fz6m
Comment options

fz6m Aug 30, 2023
Maintainer

@destinytaoer
Comment options

@fz6m
Comment options

fz6m Aug 31, 2023
Maintainer

@destinytaoer
Comment options

@fz6m
Comment options

fz6m Sep 1, 2023
Maintainer

Answer selected by Enivia
Comment options

You must be logged in to vote
3 replies
@fz6m
Comment options

fz6m Oct 17, 2023
Maintainer

@5201314999
Comment options

@5201314999
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants