Skip to content

shkuznetsov/gulp-uglify-inline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published