| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import config from '../config';
- import path from 'path';
- import gulp from 'gulp';
- /**
- * Copy font files
- *
- * @param cb: callback handler passed by gulp, signals task completion when called
- */
- export const copyFonts = (cb) => {
- gulp.src(
- path.join(
- config.paths.src,
- config.paths.fonts,
- '*.{woff,woff2}'
- )
- ).pipe(
- gulp.dest(path.join(
- config.paths.dest,
- config.paths.assets,
- config.paths.fonts
- ))
- );
- cb();
- };
- /**
- * Copy images
- *
- * @param cb: callback handler passed by gulp, signals task completion when called
- */
- export const copyImages = (cb) => {
- gulp.src(
- path.join(
- config.paths.src,
- config.paths.images,
- '*.{png,gif,jpg,svg,webp}'
- )
- ).pipe(
- gulp.dest(path.join(
- config.paths.dest,
- config.paths.assets,
- config.paths.images
- ))
- );
- cb();
- };
|