How to get an entry's dependencies array in Webpack? -
for example, have webpack.config.js follows:
module.exports = { entry: { one: './one.js', two: './two.js', }, plugins: [ new webpack.commonschunkplugin({}), ], } if one , two have common dependencies, emit 3 assets:
- one.js
- two.js
- vendor.js
i want know how dependencies array entries, example, entry one, dependencies array one.js , vendor.js.
thanks!
Comments
Post a Comment