Do you want to request a feature or report a bug?
What is the current behavior?
DllPlugin currently only works on
library bundles, not entry bundles. That is, it is impossible for a DllPlugin bundle to execute code when it is imported via a script tag into the page, other than to expose its code as a global variable.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
DllPlugin should support also running an entrypoint module in addition to exposing the global library variable.
If this is a feature request, what is motivation or use case for changing the behavior?
entry that needs to execute code. We could build two bundles per plugin, one for the library and one for the entrypoint, but that gets messy and has the drawback of being a breaking change for downstream users of the tool.
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
webpack version: 2.2