gulpfile.js 408 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('src/js/*.js')
  6. .pipe(uglify())
  7. .pipe(gulp.dest('build/js'));
  8. });
  9. gulp.task('css', function () {
  10. return gulp.src('src/less/*.less')
  11. .pipe(less())
  12. .pipe(gulp.dest('build/css'));
  13. });
  14. gulp.task("default", gulp.series(["js", "css"]));