方式一:思路:将react、react-dom基础包通过 cdn引入,不打入 bundle 中。方法: 使用 html-webpack-externals-plugin 使用 splitChunksPlugin 相关笔记链接 webpack4内置的,替代commonsChunkplugin插件