0.2.2 • Published 11 years ago

ngbmin v0.2.2

Weekly downloads
4
License
-
Repository
github
Last release
11 years ago

ngbmin

An angular before-minifying processor that doesn't try to be too smart.

how it works

Instead of detecting which functions it should or shouldn't transform, it adds a simple rule:

All named function expressions that end with '$ng' will be transformed to the array syntax.

Example:

var factory = function myModule$ng($scope, $http) {
};
angular.module('m').factory('f', factory);

Output:

var factory = ['$scope', '$http', function myModule$ng($scope, $http) {
}];
angular.module('m').factory('f', factory);

Usage

From the command-line (recommended):

ngbmin < input.js > output.js

Or with browserify

browserify -t ngbmin main.js -o main.bundle.js

license

MIT

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago