Skip to content
Expansive plugin for Angular
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Expansive plugin for Angular applications.


The exp-angular plugin provides build tooling for Angular applications. It provides the 'angular.html' transform to compile Angular HTML views into pure Javascript. The 'angular.js' transform annotates Angular scripts so they can be minfied and the 'angular.package' transform bundles multiple Angular scripts into a single loadable application file.

To install:

pak install exp-angular


Provides the following transforms:

  • angular.html
  • angular.js
  • angular.package


  • compress — Enable compression of the resultant script file.
  • dest — Destination bundled application file. Defaults to 'all.js'.
  • dotmin — Use '.min.js' as the output extension after minification. Otherwise will be '.js'. Defaults to false.
  • minify — Minify the final application file. Defaults to true.
  • options — Options for the uglify command. Defaults to --mangle if minify is true, and --compress if compress is true.
  • scripts — List of script files to package. Default to null which implies the automatic packaging of compiled scripts and script libraries.


The angular.html transform compiles HTML views into scripts that preload the HTML into the client-side Angular browser cache. This replaces the HTML views with equivalent script files.

If the minify configuration is enabled, the script will also be minified.


The angular.js transform processes Angular script files so they can be minified. It does this by including explicit annotations for the Angular dependency injection service. By default, this service compiles files with a '.js' or '' extension.

To specify the files to process, define the scripts property. For example:

"services": {
    "angular": {
        "scripts": [


The angular.package transform packages all the Angular script files into a single, loadable application file. This includes compiled HTML views and Javascript libraries.

This transform requires the 'js' service to compute the order of Javascript libraries to include.


This example demonstrates the configuration for a production release.

    services: {
        "js": {
            minify: true
        "css": {
            minify: true
        "angular": {
            scripts: [
            "package": true

Get Pak from

You can’t perform that action at this time.