Skip to content

A sample project showing how to split an Angular 1.x SPA and lazy load its chunks.

License

Notifications You must be signed in to change notification settings

octobot-dev/angular-webpack-lazyload-example

 
 

Repository files navigation

Angular + OCLazyLoad + WebPack example

This is a fork of NG6-starter repository.

The purpose of this repository is to show a way of lazy loading Angular modules using OCLazyLoad + WebPack.

The application has only 2 states. The first one (called non-lazy) is loaded in the main bundle. The second one (lazy) is bundled in a separate file and is loaded on-demand when the user accesses to it.

How to use

Requirements:

  • node >= v5.10.1
  • gulp

Clone this repo, run npm install and run gulp serve to start WebPack server.


About

A sample project showing how to split an Angular 1.x SPA and lazy load its chunks.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.8%
  • HTML 6.5%
  • CSS 0.7%