Skip to content

Commit 4501efe

Browse files
committed
Add uglify
1 parent eb3b5ce commit 4501efe

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

dist/angular-pouchdb.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
"main": "angular-pouchdb.js",
66
"scripts": {
77
"annotate": "ng-annotate -a - > dist/angular-pouchdb.js",
8-
"build": "mkdir -p dist && npm --silent run wrap | npm run annotate",
8+
"build": "mkdir -p dist && npm --silent run wrap | npm run annotate && npm run uglify",
99
"lint": "eslint *.js test/*.js",
1010
"test": "karma start",
1111
"watch": "karma start --autoWatch true --singleRun false",
12-
"wrap": "cat prefix.js angular-pouchdb.js suffix.js"
12+
"wrap": "cat prefix.js angular-pouchdb.js suffix.js",
13+
"uglify": "uglifyjs dist/angular-pouchdb.js -mc > dist/angular-pouchdb.min.js"
1314
},
1415
"repository": {
1516
"type": "git",
@@ -32,6 +33,7 @@
3233
"karma-jasmine": "^0.1.5",
3334
"karma-phantomjs-launcher": "^0.1.4",
3435
"ng-annotate": "^0.14.1",
36+
"uglify-js": "^2.4.16",
3537
"wiredep": "^1.8.2"
3638
}
3739
}

0 commit comments

Comments
 (0)