Skip to content

Commit

Permalink
chore(babel): add production env
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Mar 25, 2016
1 parent f69c6bf commit cb6bd4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
"presets": [
"es2015"
],
"plugins": [
"add-module-exports"
],
"env": {
"production": {
"plugins": [
"add-module-exports"
]
},
"development": {
"plugins": [
"jsdoc-to-assert"
"jsdoc-to-assert",
"add-module-exports"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"test": "test"
},
"scripts": {
"build": "babel src --out-dir lib --source-maps",
"build": "NODE_ENV=production babel src --out-dir lib --source-maps",
"watch": "babel src --out-dir lib --watch --source-maps",
"prepublish": "npm run --if-present build",
"test": "mocha"
Expand Down

0 comments on commit cb6bd4b

Please sign in to comment.