Bachir Soussi Chiadmi ac58a24f5c added bower, gulp | 8 years ago | |
---|---|---|
.. | ||
node_modules | 8 years ago | |
sample | 8 years ago | |
.npmignore | 8 years ago | |
.travis.yml | 8 years ago | |
README.md | 8 years ago | |
gulpfile.js | 8 years ago | |
index.js | 8 years ago | |
package.json | 8 years ago | |
test.js | 8 years ago |
minify js using gulp.
Install with npm
npm install --save-dev gulp-jsmin
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'));
});
jsmin()
MIT @chilijung