1234567891011121314151617 |
- var gulp = require('gulp');
- uglify = require('gulp-uglify');
- less = require('gulp-less');
- gulp.task('js', function () {
- return gulp.src('src/js/*.js')
- .pipe(uglify())
- .pipe(gulp.dest('build/js'));
- });
- gulp.task('css', function () {
- return gulp.src('src/less/*.less')
- .pipe(less())
- .pipe(gulp.dest('build/css'));
- });
- gulp.task("default", gulp.series(["js", "css"]));
|