Skip to content

Inlines template and styles for compiled Angular components

License

Notifications You must be signed in to change notification settings

zefoy/angular-inliner-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular inline CLI

npm version

Inlines template and styles for compiled Angular components, modifies the compiled component and metadata files.

Installing

$ npm install angular-inliner-cli --save

Usage

ngi [-s|--silent] [-c|--compress] <directory>

  -s, --silent     Output only critical errors
  -c, --compress   Compress files before inlining

  <directory>      Directory where the compiled files are

Examples

ngi --compress dist/lib/

This would take all component.js and component.metadata.json files and recursively replace the templateUrl and styleUrls with the compressed content.