This illustrates lazy loading modules using the systemjs builder and gulp. The source code is taken directly from the official Angular.io routing tutorial plunker.
-
Clone the respository
git clone https://github.com/smac89/SystemjsBuilderLazyLoad.git
-
Enter the repository directory
cd SystemjsBuilderLazyLoad
-
run
npm i
-
run
gulp
to build the app orPROD=true gulp
to build the (semi) bundled app -
run
npm start
and the app should be running atlocalhost:8080