gulp-uglify-inline
v0.1.1
Published
Gulp plugin to uglify inline scripts
Downloads
180
Maintainers
Readme
Deprecated!
Please use gulp-minify-inline which minifies both inline JS and CSS.
gulp-uglify-inline
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.