如何将webpack DllReferencePlugin限制为某些块?

时间:2017-04-13 11:59:18

标签: webpack

有没有办法可以限制webpack.DllReferencePlugin只被某些块包含?例如,如果我有以下条目,插件:

entry: {
  application: ['./app/application.js', './assets/less/application.less'],
  marketing: ['./app/marketing.js', './assets/less/marketing.less'],
  shared: ['./app/shared.js', './assets/less/shared.less']
}

plugins: [
  new webpack.DllReferencePlugin({
    manifest: path.resolve(__dirname, 'dist/js/shared-vendor-manifest.json')
  }),
  new webpack.DllReferencePlugin({
    manifest: path.resolve(__dirname, 'dist/js/application-vendor-manifest.json'),
    chunks: ['application']
  })
]

我想只允许"应用程序" chunk to see" application-vendor-manifest.json"

0 个答案:

没有答案