Minimizes app.bundle.js by default.

This commit is contained in:
Boris Grozev 2015-09-14 15:42:16 -05:00
parent b1825a3d1e
commit 5b1f7b1204
4 changed files with 5 additions and 4 deletions

2
.gitignore vendored
View File

@ -4,4 +4,4 @@ node_modules
*.iml
.*.tmp
deploy-local.sh
libs/app.bundle.js
libs/app.bundle.*

View File

@ -4,7 +4,7 @@ GLOBAL_FLAGS = -x jquery -e
OUTPUT_DIR = .
DEPLOY_DIR = libs
all: compile deploy clean
all: compile deploy clean uglify
compile:FLAGS = $(GLOBAL_FLAGS)
compile: app

View File

@ -20,7 +20,7 @@
<script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
<script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
<script src="interface_config.js?v=6"></script>
<script src="libs/app.bundle.js?v=138"></script>
<script src="libs/app.bundle.min.js?v=138"></script>
<script src="analytics.js?v=1"></script><!-- google analytics plugin -->
<link rel="stylesheet" href="css/font.css?v=7"/>
<link rel="stylesheet" href="css/toastr.css?v=1">

View File

@ -28,7 +28,8 @@
"socket.io-client": "1.3.6"
},
"devDependencies": {
"precommit-hook": "3.0.0"
"precommit-hook": "3.0.0",
"uglify-js": "2.4.24"
},
"license": "Apache-2.0",
"scripts": {