1.1.1 • Published 10 years ago

ag-requirejs-angular-minify-fix v1.1.1

Weekly downloads
3
License
ISC
Repository
github
Last release
10 years ago

ag-requirejs-angular-minify-fix

Automatic fixing of angular methods for minification

Used with grunt-contrib-requirejs

Usage

npm install ag-requirejs-angular-minify-fix --save-dev

In your javascript files, add function $ng name to enable fix to find your angular functions.

angular.controller("foo", function $ng($scope, $location, Foo) {
	// code here
});

Function is automatically converted into:

angular.controller("foo", ["$scope", "$location", "Foo", function ($scope, $location, Foo) {
	// code here
}]);

Gruntfile.js

requirejs: {
	compile: {
		options: {
			// other options ...
			onBuildRead: require('ag-requirejs-angular-minify-fix')
		}
	}
}
1.1.1

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago