gulp-ngmin[DEPRECATED] Pre-minify AngularJS apps with ngmin

联合创作 · 2023-09-21 05:03

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

浏览 8
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报