Is it possible to load ionic libs from local asset, and app code from server?

I want to minimum the download size, but with the ability to update app dynamically.