Bachir Soussi Chiadmi ac58a24f5c added bower, gulp | 7 years ago | |
---|---|---|
.. | ||
node_modules | 7 years ago | |
sample | 7 years ago | |
.npmignore | 7 years ago | |
.travis.yml | 7 years ago | |
README.md | 7 years ago | |
gulpfile.js | 7 years ago | |
index.js | 7 years ago | |
package.json | 7 years ago | |
test.js | 7 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