darkty2009 / webpack-require-http

you can use the "require" method to load http resource in webpack
100 stars 17 forks source link

Hao to load a AMD module #3

Open yuu2lee4 opened 7 years ago

yuu2lee4 commented 7 years ago

if the http resource is a AMD module,hao to load it?

darkty2009 commented 7 years ago

you can load it directly. when the RESOURCE load complete, you can use it in the Promise.then, like requirejs.

but, i think you may need it , http://webpack.github.io/docs/code-splitting.html see: require.ensure