Interactive interface for browsing global, full-resolution satellite imagery
#2876 remove preview images during dist build if that feature is disabled
Jason Kent1b1fdb0c11a7
diff --git a/tasks/dist.js b/tasks/dist.jsindex 40ef1edbc..a4cb6b090 100755--- a/tasks/dist.js+++ b/tasks/dist.js@@ -11,6 +11,12 @@ shell.rm('-rf', 'build/worldview');shell.mkdir('-p', 'build/worldview');shell.cp('-rf', 'web/*', 'build/worldview');+// Remove preview images, if that feature is disabled, for smaller dist file size+const { features } = JSON.parse(fs.readFileSync('config/default/common/features.json'));+if (!features.previewSnapshots) {+ shell.rm('-rf', 'build/worldview/images/layers/previews');+}+console.log('Branding');// eslint-disable-next-line import/no-unresolvedconst brand = require('../build/worldview/brand/brand.json');