Skip to content

Commit

Permalink
Merge pull request #184 from HoraceShmorace/master
Browse files Browse the repository at this point in the history
Clarifying name and use of React env config.
  • Loading branch information
coryhouse committed Jul 8, 2016
2 parents a7c95c5 + a9be5dd commit eeabfbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack.config.dev.js
Expand Up @@ -2,7 +2,7 @@ import webpack from 'webpack';
import path from 'path';
import HtmlWebpackPlugin from 'html-webpack-plugin';

const GLOBALS = {
const REACT_BUILD_ENV = {
'process.env.NODE_ENV': JSON.stringify('development'),
__DEV__: true
};
Expand All @@ -22,7 +22,7 @@ export default {
filename: 'bundle.js'
},
plugins: [
new webpack.DefinePlugin(GLOBALS), // Tells React to build in prod mode. https://facebook.github.io/react/downloads.html
new webpack.DefinePlugin(REACT_BUILD_ENV), // Tells React to build in either dev or prod modes. https://facebook.github.io/react/downloads.html (See bottom)
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),
new HtmlWebpackPlugin({ // Create HTML file that includes references to bundled CSS and JS.
Expand Down

0 comments on commit eeabfbc

Please sign in to comment.