react-luo icon indicating copy to clipboard operation
react-luo copied to clipboard

不做公共代码抽取么?

Open zhans1993 opened this issue 6 years ago • 1 comments

我在现在的项目里没发现有配置这个。

zhans1993 avatar Jun 03 '19 03:06 zhans1993

webpack4中默认有splitChunks来做这些工作,我没有单独配置

splitChunks: {
      // 默认打包node_modules到venders.js
      chunks: 'all'
    },
    // 将webpack运行时生成代码打包到runtime.js
    runtimeChunk: true

我等会儿去官网看看具体的设置,优化一下

javaLuo avatar Jun 03 '19 04:06 javaLuo