Skip to content

Commit

Permalink
Add webpack script for umd packing
Browse files Browse the repository at this point in the history
  • Loading branch information
mondaychen committed Aug 5, 2015
1 parent d8d1d2a commit f6c87d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"sinon": "^1.15.4",
"unexpected": "^9.2.1",
"unexpected-dom": "^1.2.0",
"unexpected-sinon": "^6.4.1"
"unexpected-sinon": "^6.4.1",
"webpack": "^1.10.3"
},
"peerDependencies": {
"react": ">=0.13.3"
Expand All @@ -51,7 +52,8 @@
"release": "gulp release",
"start": "gulp dev",
"test": "mocha --compilers js:babel/register",
"watch": "gulp watch:lib"
"watch": "gulp watch:lib",
"build-umd": "webpack --config webpack-config.js --output-library 'react-select' --output-library-target umd . ./dist/react-select.umd.js"
},
"keywords": [
"combobox",
Expand Down
5 changes: 5 additions & 0 deletions webpack-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
externals : [
"react"
]
};

0 comments on commit f6c87d2

Please # to comment.