I want to write an app in Angular Dart that is to be served only over local network, possibly never ever touching the internet. The problem I have is that some things rely on resources from the web, typically style imports e.g. for material components:
@import url(https://fonts.googleapis.com/css?family=Material+Icons);
In such a simple case, I can manually download the resources and change the import. However, I would have to examine all packages I use (and their dependencies) and check whether they also load resources from web. And if they did, I would have to change the code of the package to point to the manually downloaded files. This is infeasible because of the potentially vast number of packages to examine and also because the source code of a package would have to be changed.
Is it possible to automatically acquire all the resources and bundle them at build time?