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
403

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?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
刘奇

Just encapsulate one yourself and repackage require.ensure

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!