This repository was archived by the owner on Jun 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
This repository was archived by the owner on Jun 27, 2020. It is now read-only.
Allow running bundlers in more than one configuration #83
Open
Assignees
Labels
@JakeWharton
Description
I have a need to run webpack twice in a single module.
Right now I can work around this by moving all of the code to a library and then consuming it from two modules with two configurations, but having three modules instead of one every time I need to do this is tedious. Compare this to something like the distribution plugin where you can configure multiple distributions or the Android Gradle plugin where it has the concept of variants to produce multiple outputs and that is a much more pleasant experience.
If every bundle invocation was named and the names were required to be unique all of the tasks and all of the file in the build/ folder could be scoped allowing this to work.