19 lines
608 B
JavaScript

const { src } = require('gulp');
const clean = require('gulp-clean');
module.exports = exports = function cleanDistribution () {
return src([ 'dist', 'rev-manifest.json', 'pages.json', 'assets.json' ], { read: false, allowEmpty: true })
.pipe(clean());
};
exports.dev = function cleanDistributionForDev () {
return src([ 'dist/**.{js|json|jsx}', 'rev-manifest.json', 'pages.json', 'assets.json' ], { read: false, allowEmpty: true })
.pipe(clean());
};
exports.prodBackup = function cleanProdCopy () {
return src([ 'published' ], { read: false, allowEmpty: true })
.pipe(clean());
};