Get started with gulp CDN

MIT licensed

Gulp: Node.js module for streaming data with a simple, efficient API.

Tags:
  • gulp

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!

All versions