You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
My scenario is very basic. I'm trying to make a regular bundle (starting from app.js, ending up with sth called app-bundle.js). And I successfully made it, which was so straightforward. Then I'm trying to use this bundle on a page. I simply put it on the page using < script src="app-bundle.js" >< /script >, nothing else changed, I mean, system.js and config.js are still on the page like they are before the bundle.
What I expected is that the System.import("app") will just work, I mean, it should load the dependencies from the already loaded app-bundle.js. But in my case, it continues loading everything directly from the original location and totally ignores the app-bundle.js.
I feel I'm missing something, but I can't find a complete/working sample on this site and the web. Can you guys help me out?
Ah, got it working by using the following. This really should at least mentioned in the example...
System.config({
bundles: {
"app-bundle": ["app"]
}
});
Activity
jack4it commentedon Oct 12, 2015
Ah, got it working by using the following. This really should at least mentioned in the example...
System.config({
bundles: {
"app-bundle": ["app"]
}
});
guybedford commentedon Oct 12, 2015
Thanks, marking as a documentation issue.
[-]It might be a tiny little thing, but I can't figure it out, please help[/-][+]Document how to include bundles[/+]guybedford commentedon Jan 25, 2016
Tracking in #250.