Skip to content

Commit

Permalink
Use -p flag in webpack for minification and exclude externals react a…
Browse files Browse the repository at this point in the history
…nd react-dom (reactjs#159)
  • Loading branch information
doque authored and claydiffrient committed Apr 14, 2016
1 parent 72c8498 commit 9823bc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/build
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
webpack --config webpack.dist.config.js
webpack --config webpack.dist.config.js -p
7 changes: 6 additions & 1 deletion webpack.dist.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ module.exports = {
'react-modal.min': './lib/index.js'
},

externals: [
'react',
'react-dom'
],

output: {
filename: '[name].js',
chunkFilename: '[id].chunk.js',
Expand Down Expand Up @@ -37,4 +42,4 @@ module.exports = {
]
}

};
};

0 comments on commit 9823bc5

Please sign in to comment.