jsmin in gulp
JavaScript
Latest commit 84048a7 Apr 25, 2015 @chilijung Merge pull request #3 from rhencke/sourcemaps
Preserve sourcemaps in minified files.
Permalink
Failed to load latest commit information.
sample fix output Feb 22, 2014
.gitignore init Feb 4, 2014
.travis.yml add travis Feb 17, 2014
README.md fix output Feb 22, 2014
gulpfile.js fix output Feb 22, 2014
index.js Preserve sourcemaps. Apr 21, 2015
package.json Update package version. Apr 21, 2015
test.js fix output Feb 22, 2014

README.md

gulp-jsmin

Build Status

minify js using gulp.

Install

Install with npm

npm install --save-dev gulp-jsmin

Example

var gulp = require('gulp');
var jsmin = require('gulp-jsmin');
var rename = require('gulp-rename');

gulp.task('default', function () {
    gulp.src('src/**/*.js')
        .pipe(jsmin())
        .pipe(rename({suffix: '.min'}))
        .pipe(gulp.dest('dist'));
});

API

jsmin()

jsmin()

License

MIT @chilijung