Skip to content

Commit

Permalink
added browser version, uglified
Browse files Browse the repository at this point in the history
  • Loading branch information
duckpunch committed Sep 15, 2015
1 parent 27e677e commit 186e959
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"devDependencies": {
"babelify": "^6.3.0",
"browserify": "^11.0.1",
"mochify": "^2.13.0"
"mochify": "^2.13.0",
"uglify-js": "^2.4.24"
},
"browserify": {
"transform": [
Expand All @@ -31,7 +32,7 @@
]
},
"scripts": {
"build": "browserify -o build/godash.js -r ./src/index.js:godash",
"build": "browserify -o ./build/godash.js -e ./src/browser.js && uglifyjs --compress --mangle --output build/godash.min.js -- build/godash.js",
"test": "mochify",
"watch-test": "mochify -w"
}
Expand Down
6 changes: 6 additions & 0 deletions src/browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import index from './index.js';


if (!window.godash) {
window.godash = index;
}

0 comments on commit 186e959

Please sign in to comment.