Skip to content

Commit

Permalink
use minified react and react-with-addons
Browse files Browse the repository at this point in the history
  • Loading branch information
ehg authored and blowery committed Jan 17, 2017
1 parent 7d16df2 commit 49402a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webpack.config.node.js
Expand Up @@ -44,6 +44,9 @@ function getExternals() {
externals[ 'devdocs/components-usage-stats.json' ] = 'commonjs devdocs/components-usage-stats.json';
// Exclude server/bundler/assets, since the files it requires don't exist until the bundler has run
externals[ 'bundler/assets' ] = 'commonjs bundler/assets';
// Map React to the minimized version
externals[ 'react-with-addons' ] = 'commonjs react/dist/react-with-addons.min';
externals.react = 'commonjs react/dist/react.min';

return externals;
}
Expand Down

0 comments on commit 49402a5

Please sign in to comment.