jeudi 7 juillet 2016

Is it possible to split EmberJS' vendor file into multiple files?

EmberJS, via the ember-cli project, compiles both a vendor.js file and an application-name.js file. I have noticed that vendor.js can grow to be quite large. Is it possible to split vendor.js across multiple files—either as vendor.1.js ... vendor.n.js or in a more contextual ways like these-components.js and those-components.js?

If it isn't possible, or not reasonably feasible to do the above, how does one prevent the vendor.js file from bloating to unreasonable sizes?

Right now it seems like any moderately complex EmberJS application will be an unmanageable nightmare from a dependency perspective, especially for mobile browsers.




Aucun commentaire:

Enregistrer un commentaire