webpack-configurator icon indicating copy to clipboard operation
webpack-configurator copied to clipboard

Allow hook on resolve

Open vjpr opened this issue 8 years ago • 2 comments

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.

vjpr avatar May 01 '16 11:05 vjpr

I'm quite sure I understand what the use case is here. Could you provide an example?

lewie9021 avatar May 02 '16 18:05 lewie9021

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.

vjpr avatar May 05 '16 01:05 vjpr