ag-requirejs-angular-minify-fix
v1.1.1
Published
Automatic fixing of angular methods for minification
Downloads
6
Readme
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')
}
}
}