Esri-DevCenter-Beijing / wab-app-build-script

14 stars 0 forks source link

Build a layer for dojo and esri #6

Open DemersM opened 4 years ago

DemersM commented 4 years ago

Hi, Would it be possible to build layers, one for dojo and one for esri that will include all the needed modules into one file for each library.

Like that, it would be possible to decrease the number of requests made to the server when opening a WAB application.

Thank you.

qlqllu commented 4 years ago

You can put the modules (widgets) that you want to build in here: https://github.com/Esri-DevCenter-Beijing/wab-app-build-script/blob/master/buildScripts/_app.profile.js#L71

or

https://github.com/Esri-DevCenter-Beijing/wab-app-build-script/blob/master/buildScripts/_app.profile.js#L74

This can build some widgets into one layer, which can decrease the requests.

DemersM commented 4 years ago

I have take a quick look at the buildScript files. I think I understand some parts. This is a really good job!

Have you made some load tests with built applications to compare with unbuilt?