[DEPRECATED] Pre-minify AngularJS apps with ngmin
JavaScript
Switch branches/tags
Latest commit 5c945b5 Jul 18, 2014 @sindresorhus deprecate
fixes #8
Permalink
Failed to load latest commit information.
.editorconfig init Dec 21, 2013
.gitattributes
.gitignore init Dec 21, 2013
.jshintrc init Dec 21, 2013
.travis.yml
index.js
package.json
readme.md deprecate Jul 18, 2014
test.js switch to through2 Jan 19, 2014

readme.md

Deprecated in favor of gulp-ng-annotate. Reasoning.


gulp-ngmin Build Status

Pre-minify AngularJS apps with ngmin

Issues with the output should be reported on the ngmin issue tracker.

Install

$ npm install --save-dev gulp-ngmin

Usage

var gulp = require('gulp');
var ngmin = require('gulp-ngmin');

gulp.task('default', function () {
	return gulp.src('src/app.js')
		.pipe(ngmin({dynamic: true}))
		.pipe(gulp.dest('dist'));
});

API

ngmin(options)

options.dynamic

Type: boolean
Default: false

Enables the dynamic mode.

License

MIT © Sindre Sorhus