Skip to content

Commit

Permalink
Build config React app with production build
Browse files Browse the repository at this point in the history
Use React's production build in building the configuration
mini-application.
  • Loading branch information
tkurki committed Jan 16, 2017
1 parent eeb95d3 commit 788d52e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugin-config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,12 @@ module.exports = {
resolveLoader: {
fallback: path.join(__dirname, "node_modules")
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production')
}
}),
new webpack.optimize.UglifyJsPlugin()
]
}

0 comments on commit 788d52e

Please sign in to comment.