Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

Document how to include bundles #348

Closed

Description

@jack4it

Hi Folks -

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?

I can provide any further information needed.

Thanks,
-Jack

Activity

  1. jack4it commented on Oct 12, 2015

    @jack4it
    Author

    Ah, got it working by using the following. This really should at least mentioned in the example...
    System.config({
    bundles: {
    "app-bundle": ["app"]
    }
    });

  2. guybedford commented on Oct 12, 2015

    @guybedford
    Member

    Thanks, marking as a documentation issue.

  3. changed the title [-]It might be a tiny little thing, but I can't figure it out, please help[/-] [+]Document how to include bundles[/+] on Oct 18, 2015
  4. guybedford commented on Jan 25, 2016

    @guybedford
    Member

    Tracking in #250.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions