Hi, do you consider that's a good approach to work during development with a dynamic resource resolution, which allows to skip any bundling operation each time you make some changes and then to bundle the statics before going to production? In that scenario how you would update easily the systemjs config to rely on the bundle once you're in production only? Is assetgraph-systemjs the recommended approach? Tks @guybedford
@gdrouet I development you would keep doing the dynamic loading as you probably already do. Assetgraph is wrapping systemjs-builder, then doing some extra bundling. You do not need to make any change to your system.config at all, since the bundle will just inject all the dependencies into the systemjs cache before the execution of the main app starts
Now, I haven't had a chance to run the assetgraph-systemjs integration in an app of my own yet, but assetgraph further bundles things after the systemjs builder call, which means that it will most likely replace your script tags of polyfills, systemjs, systemjs-config and app-init down to a single bundle.
@Munter this is quite strange, I created a bundle for my application with systemjs-builder based on my working systemjs config, included this script in my HTML page and when I load my page it randomly works, some time everything is fine and my statics are not loaded individually (the bundle content is used instead) but some times I get an error => EXCEPTION: Error during instantiation of AnimationDriver! (ViewUtils -> RootRenderer -> DomRootRenderer -> AnimationDriver).
Well I just debugged my stacktrace and it just an attempt to read document.body that failed because it was null, probably meaning that some times the script is executed before the body is loaded in the DOM. I declared my scripts after the <body> element and this solved the issue
hi:) Who is responsible for getting content of Angular2 templateUrl(xhr request) : Zone.js or System.Js ??? i wrote a System.js plugin for .html files but it isn't triggering :( Maybe here is not the place but I hope someone know something