有没有办法可以限制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"