angular-rollup

raw JSON →
2.0.5 verified Mon Apr 27 auth: no javascript deprecated

CLI tool for building Angular applications with Rollup and Closure Compiler, extending @angular/cli. Version 2.0.5 (last release) targets Angular 2+ projects, offering optimized production builds via Closure Compiler or Rollup. Key differentiators include integration with @angular/cli, Angular Package Format library builds, and an Express server. Low release cadence; effectively replaced by Angular CLI's built-in optimization and Ivy. Suitable for legacy Angular builds needing minimal bundle sizes.

error Error: Cannot find module '@angular/cli'
cause @angular/cli not installed globally.
fix
Run: npm install -g @angular/cli
error 'ngr' is not recognized as an internal or external command
cause angular-rollup not installed globally or not in PATH.
fix
Run: npm install -g angular-rollup. On Windows, restart terminal after install.
error Error: Java not found. Please install Java JDK 8 or higher.
cause Java runtime missing for Closure Compiler.
fix
Install Java JDK 8+ and ensure java is in PATH.
gotcha Requires Java JDK 8+ installed on system for Closure Compiler. Missing Java leads to obscure errors.
fix Install Java JDK from https://www.oracle.com/java/technologies/javase/jdk8-downloads.html
deprecated Package is unmaintained; last release 2018. May not work with Angular versions >5 or Node >8.
fix Migrate to @angular/cli with Angular CLI's production build (--prod) which includes optimization.
gotcha Global install required; 'ngr' command will not be found if @angular/cli is not also installed globally.
fix Ensure @angular/cli is globally installed alongside angular-rollup.
gotcha Build command 'ngr build prod' may fail if environment.ts is not properly configured or missing.
fix Ensure environment files exist in src/environments/ or use --env to specify path.
npm install angular-rollup
yarn add angular-rollup
pnpm add angular-rollup

Installs the CLI globally, scaffolds a new Angular app, and builds for production with Closure Compiler.

npm install -g angular-rollup @angular/cli
ngr new my-app
cd my-app
ngr build prod