Get started with gulp CDN
Stable version
Copied!
How to start using gulp CDN
const gulp = require('gulp');
// Define tasks
const htmlTask = () =>
gulp.src('src/**/*.html')
.pipe(gulp.dest('dist'));
const scriptsTask = () =>
gulp.src('src/**/*.js')
.pipe(gulp.dest('dist'));
const imagesTask = () =>
gulp.src('src/images/**/*')
.pipe(gulp.dest('dist/images'));
// Define default task
const defaultTask = gulp.series(htmlTask, scriptsTask, imagesTask);
// Initialize gulp
gulp.init(defaultTask);
Copied!
Copied!