Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.
This repository was archived by the owner on Dec 3, 2023. It is now read-only.

Add template pre-caching #4

Open

Description

@stackfull

Not sure this is necessary as the html loader is good for templates.

Activity

  1. jeffling commented on Jun 9, 2014

    @jeffling

    it could be good to reduce bundle size, ie. load the first template the user hits into the bundle, precache the rest after the first page is already rendered.

    It might also be able just to use normal webpack lazy-load syntax... but I haven't tried that yet.

  2. scottmas commented on Sep 24, 2014

    @scottmas
    Contributor

    You're right, html-loader does work for almost all cases. However, it would be nice for this plugin to have a story for when developers use ng-include to fetch external html fragments (and webpack would not by default put these html fragments in the bundle directory) or when they want to specify a templateUrl rather than template in their router or directives. This said, its still probably not a big deal.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions