javascript - Does webpack require have any global hook functions or callback functions before and after asynchronous loading?
高洛峰2017-05-16 13:38:55
0
1
456
I want to add a loading to the web page before the require asynchronous request component, and close the loading after the request is completed. Does webpack require have such a global hook function?
Just encapsulate one yourself and repackage require.ensure