Skip to content

Commit

Permalink
Merge pull request #755 from WordPress/update/webpack-node-env-produc…
Browse files Browse the repository at this point in the history
…tion

Define node environment constant in Webpack configuration
  • Loading branch information
aduth authored May 10, 2017
2 parents 1c4ed1f + d99f30f commit a7b6beb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ const config = {
]
},
plugins: [
new webpack.DefinePlugin( {
'process.env.NODE_ENV': JSON.stringify( process.env.NODE_ENV )
} ),
new ExtractTextPlugin( {
filename: './[name]/build/style.css'
} ),
Expand Down

0 comments on commit a7b6beb

Please sign in to comment.