| 12345678910111213141516171819202122 |
- import config from '../config';
- import path from 'path';
- import del from 'del';
- /**
- * Clean build products
- *
- * @param cb: callback handler passed by gulp, signals task completion when called
- */
- export const clean = (cb) => {
- const assetPath = path.join(config.paths.dest, config.paths.assets);
- del([
- path.join(assetPath, config.paths.css, '/**/*'),
- path.join(assetPath, config.paths.fonts, '/**/*'),
- path.join(assetPath, config.paths.images, '/**/*'),
- path.join(assetPath, config.paths.js, '/**/*')
- ]);
- cb();
- };
|