gulpfile.js 267 B

12345678910
  1. var gulp = require('gulp');
  2. var jsmin = require('./');
  3. var rename = require('gulp-rename');
  4. gulp.task('default', function () {
  5. gulp.src('./sample/test.js')
  6. .pipe(jsmin())
  7. .pipe(rename({suffix: '.min'}))
  8. .pipe(gulp.dest('./sample/dist'));
  9. });