forked from github.com/GenderDysphoria.fyi
Initial site commit
This commit is contained in:
13
gulp/clean.js
Normal file
13
gulp/clean.js
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
const { src } = require('gulp');
|
||||
const clean = require('gulp-clean');
|
||||
|
||||
module.exports = exports = function cleanDistribution () {
|
||||
return src([ 'dist', 'rev-manifest.json', 'posts.json', 'posts-sans.json' ], { read: false, allowEmpty: true })
|
||||
.pipe(clean());
|
||||
};
|
||||
|
||||
exports.dev = function cleanDistributionForDev () {
|
||||
return src([ 'dist/**.{js|json|jsx}', 'rev-manifest.json', 'posts.json', 'posts-sans.json' ], { read: false, allowEmpty: true })
|
||||
.pipe(clean());
|
||||
};
|
||||
Reference in New Issue
Block a user