Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

optimization and log removal from production js

Benjamina818fdfad39d
diff --git a/Gruntfile.js b/Gruntfile.js
index b99abab76..0b7403392 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -514,6 +514,7 @@ module.exports = function(grunt) {
report: {
options: {
reporter: "checkstyle",
+
},
files: {
src: [
@@ -526,10 +527,16 @@ module.exports = function(grunt) {
uglify: {
// Minifiy the concatenated Worldview JavaScript file.
+ options: {
+ banner: banner,
+ compress: {
+ drop_console: true,
+ drop_debugger: true,
+ unused: true
+ }
+ },
wv_js: {
- options: {
- banner: banner
- },
+
files: {
"build/worldview/web/js/wv.js": [
"build/worldview/web/js/wv.js"
diff --git a/package.json b/package.json
index 76a622df3..0c0b505a4 100644
--- a/package.json
+++ b/package.json
@@ -22,7 +22,7 @@
"grunt-contrib-csslint": "0.2.x",
"grunt-contrib-cssmin": "0.7.x",
"grunt-contrib-jshint": "0.8.x",
- "grunt-contrib-uglify": "0.6.x",
+ "grunt-contrib-uglify": "2.0.x",
"grunt-exec": "0.4.x",
"grunt-git-rev-parse": "0.1.x",
"grunt-line-remover": "0.0.x",