splitChunks 是配置webpack 內建的SplitChunksPlugin ,這是個幫助使用者分割代碼的Plugin 。 我們試著使用 splitChunks 將上例的 lodash 給切割出來:
確定! 回上一頁