Add references to your angularjs package to the index.html file of your app.

npm install grunt-angular-package
1 downloads in the last week
5 downloads in the last month


Add references to your angularjs module to the index.html file of your app.

Getting Started

This plugin requires Grunt ~0.4.1

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-angular-package --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:


How to use it in your index.html file

This grunt task is meant to work in conjunction with the angular-package-loader.

At the bottom of your index.html file, add the following above your app.js include:

<!-- angular-package app/packages/myPackage -->
<!-- end-angular-package -->

The "angular-package" task


In your project's Gruntfile, add a section named angular-package to the data object passed into grunt.initConfig().

  "angular-package": {
    app: { indexFile: 'app/index.html'}



Type: String Default value: 'app/index.html'


To Stephen Sawchuk for fixing my regex.

npm loves you