gulpfile.js 404 B

1234567891011121314151617
  1. var gulp = require('gulp');
  2. uglify = require('gulp-uglify');
  3. less = require('gulp-less');
  4. gulp.task('js', function () {
  5. return gulp.src('js/*.js')
  6. .pipe(uglify())
  7. .pipe(gulp.dest('dist'));
  8. });
  9. gulp.task('less', function () {
  10. return gulp.src('src/less/index.less')
  11. .pipe(less())
  12. .pipe(gulp.dest('src/css'));
  13. });
  14. gulp.task("default", gulp.series(["js", "css"]));