From 55af1c61e5633d4ac63c249f872d536dfc9d5e57 Mon Sep 17 00:00:00 2001 From: "Jocelyn Badgley (Twipped)" Date: Sat, 22 Feb 2020 20:31:50 -0800 Subject: [PATCH] Delete twitter-cache.json on prod build --- gulp/clean.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulp/clean.js b/gulp/clean.js index 571247d..8e999b0 100644 --- a/gulp/clean.js +++ b/gulp/clean.js @@ -3,11 +3,11 @@ 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 }) + return src([ 'dist', 'rev-manifest.json', 'pages.json', 'twitter-cache.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 }) + return src([ 'dist/**.{js|json|jsx}', 'rev-manifest.json', 'pages.json' ], { read: false, allowEmpty: true }) .pipe(clean()); };