Sparq-Holding-Inc / angular-webpack-lazyload-example

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

Repository from Github https://github.comSparq-Holding-Inc/angular-webpack-lazyload-exampleRepository from Github https://github.comSparq-Holding-Inc/angular-webpack-lazyload-example

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.

License:Apache License 2.0


Languages

Language:JavaScript 92.9%Language:HTML 6.5%Language:CSS 0.7%