多入口文件是不是和下面的splitChunks冲突了
来源:4-6 SplitChunksPlugin 配置参数详解(2)
 
			慕粉1413454314
2019-09-03
    entry: {
        home: path.resolve(__dirname,"../src/home.js"),
        common:path.resolve(__dirname,"../src/fn.js")
    },
多入口文件是不是和下面的splitChunks冲突了(也就是入口文件主动的加了fn.js,然后页面又import 了 fn.js)
optimization: {
        splitChunks: {
      chunks: 'all',
      minSize: 30000,
      minChunks: 1,
      maxAsyncRequests: 5,
      maxInitialRequests: 3,
      automaticNameDelimiter: '~',
      name: true,
      cacheGroups: {
        vendors: {
          test: /[\\/]node_modules[\\/]/,
          priority: -10,
          // filename: 'vendors.js',
        },
        default: {
          priority: -20,
          reuseExistingChunk: true,
          filename: 'common.js'
        }
      }
    }
    },
1回答
- 
				  Dell 2019-09-05 是的,这么配肯定会冲突 00
相似问题
