webpack-configurator
webpack-configurator copied to clipboard
Allow hook on resolve
Would be cool if you could at a hook to the resolve method.
For loaders and plugins this is possible using the callback. I have a need for it for config props when splitting up config into different files based on feature.
I'm quite sure I understand what the use case is here. Could you provide an example?
Say I have a file that contains all necessary config to setup bootstrap-loader
. This must be loaded first in my vendor bundle.
So to allow keeping all config related to the module I am using...I would need a hook to run on resolve to move it to the top of the entry.vendor
array. There are a couple other things too.
I suggested it because the plugin approach allows this functionality in the callback. So this would be similar but for the rest of the config.