Skip to content

Angular application with plugin architecture based completely on rollup and SystemJS 3. Uses AOT and Ivy for dev and prod.

Notifications You must be signed in to change notification settings

stefanocke/angular-cli-app-with-rollup

Repository files navigation

CircleCI

AngularCliAppWithRollup

This project uses Angular 9.x or above with Ivy.

Rollup Build

In progress / experimental!

Shows a plugin architecture where an application (main.js) can load dynamically Angular modules and components (from dyn.js) an both share common libs (third party like Angular and common application code like app-common.js).

The dynamic module (dyn.js) would be typically in separate project but is included here for simplicity.

Both, the main application and the dynamic module are build with rollup. The libs are defined to be externals for the application and the dynamic module and are also bundled with rollup.

For loading the bundles / modules, SystemJS 3.x is used.

Development Server

Run npm run rollup-dev for a dev-server on http://localhost:5000/. Ngc (Angular AOT Compiler) and rollup will both run in watch mode.

Production Build

Run npm run rollup-prod. Directory dist-rollup will contain the build result.

Webpack Build

Not maintained here.

About

Angular application with plugin architecture based completely on rollup and SystemJS 3. Uses AOT and Ivy for dev and prod.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published