Interactive interface for browsing global, full-resolution satellite imagery
Change NODE_ENV check to production instead of development
Jo Spraguebd3dac24e3c0
diff --git a/tasks/buildJS.js b/tasks/buildJS.jsindex c12caca6d..fc36f4d31 100644--- a/tasks/buildJS.js+++ b/tasks/buildJS.js@@ -5,7 +5,7 @@ const watchify = require('watchify');const minimist = require('minimist');const argv = minimist(process.argv.slice(2));-const isDebug = process.env.NODE_ENV === 'development';+const isProduction = process.env.NODE_ENV === 'production';const isWatching = process.env.WORLDVIEW_WATCH === 'active';const isTest = argv.tests;@@ -14,8 +14,8 @@ const outputDir = './web/build/';const outputPath = outputDir + (isTest ? 'wv-test-bundle.js' : 'wv.js');var bundler = browserify(entryPoint, {- debug: isDebug, // Include source maps (makes bundle size larger)- fullPaths: isDebug, // For use with https://www.npmjs.com/package/disc+ debug: !isProduction, // Include source maps (makes bundle size larger)+ fullPaths: !isProduction, // For use with https://www.npmjs.com/package/disccache: {}, // Required for watchifypackageCache: {}, // Required for watchifyplugin: [isWatching ? watchify : null]