How to get the timing of webpack asynchronous loading?

is there any way to get the timing when webpack injects asynchronous loading modules into dom, such as routing a.js and b.js? I want to do something before the page writes a.js to head with script tags. Is there any way to do this?

Mar.02,2021

the process of asynchronously loading your module is to return a promise,. If you do what you want to do before, you can use promise chained processing

.
Menu