gulp-uglify-inline

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i gulp-uglify-inline

Weekly Downloads

22

Version

0.1.1

License

none

Last publish

Collaborators

  • shkuznetsov