Skip to content

Commit

Permalink
TOOLS (build): fix umd build and module
Browse files Browse the repository at this point in the history
  • Loading branch information
sanusart committed Feb 25, 2019
1 parent c56f3d1 commit e9d3308
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
src
docs/src/examples
docs
styles.css
Expand All @@ -14,3 +13,4 @@ README.md
.babelrc
.travis.yml
LICENSE
change-log-builder.sh
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "2.0.1",
"description": "Customizable dropdown select for react",
"main": "dist/react-dropdown-select.js",
"module": "src/index.js",
"scripts": {
"test": "jest --bail && npm run prepublishOnly && bundlesize",
"coveralls": "jest --coverage && cat ./coverage/lcov.info | coveralls",
Expand Down
5 changes: 3 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ module.exports = {
entry: path.join(__dirname, 'src/index.js'),
output: {
path: path.join(__dirname, 'dist'),
libraryTarget: 'commonjs2',
filename: 'react-dropdown-select.js'
libraryTarget: 'umd',
filename: 'react-dropdown-select.js',
library: 'Select'
},
optimization: {
minimizer: [
Expand Down

0 comments on commit e9d3308

Please sign in to comment.