0.1.1 • Published 9 years ago

gulp-uglify-inline v0.1.1

Weekly downloads
19
License
-
Repository
github
Last release
9 years ago

Deprecated!

Please use gulp-minify-inline which minifies both inline JS and CSS.


gulp-uglify-inline NPM version Build Status

gulp-uglify-inline is a gulp plugin to uglify inline scripts.

Uses cheerio to parse HTML and UglifyJS to uglify JS code.

Installation

Install package with NPM and add it to your development dependencies:

npm install --save-dev gulp-uglify-inline

Usage

var uglifyInline = require('gulp-uglify-inline');

var options = {
	output: {
		comments: true
	}
};

gulp.task('uglify-inline', function() {
  gulp.src('./*.html')
    .pipe(uglifyInline(options))
    .pipe(gulp.dest('dist'))
});

Options object will be passed directly to uglify's minify() function, so you can use any options described here.

LICENSE

MIT License