Skip to content
This repository has been archived by the owner on Jul 31, 2018. It is now read-only.

Commit

Permalink
Merge pull request #16 from conorhastings/master
Browse files Browse the repository at this point in the history
use DefinePlugin to inject NODE_ENV into webpack build
  • Loading branch information
tj committed Dec 31, 2015
2 parents b2a54be + 9225345 commit 3ff4f2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var webpack = require('webpack');
var rucksack = require('rucksack-css')
var webpack = require("webpack")

module.exports = {
context: __dirname + "/client",
Expand Down Expand Up @@ -46,5 +47,10 @@ module.exports = {
rucksack({
autoprefixer: true
})
],
plugins: [
new webpack.DefinePlugin({
'process.env': { NODE_ENV: JSON.stringify(process.env.NODE_ENV || 'development') }
})
]
}

0 comments on commit 3ff4f2a

Please sign in to comment.