gulp-ngmin

Pre-minify AngularJS apps with ngmin

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gulp-ngmin
8700.3.010 years ago10 years agoMinified + gzip package size for gulp-ngmin in KB

Readme

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