Skip to content

Commit

Permalink
Fixes config to solve production undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrivingKings committed Jun 23, 2017
1 parent 1252c93 commit 0ab848e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "circle-ui",
"version": "1.0.1",
"version": "1.0.3",
"main": "./dist/index.js",
"repository": "https://github.com/ThrivingKings/circle-ui",
"description": "A collection of self-contained React components.",
Expand All @@ -11,9 +11,9 @@
],
"scripts": {
"build:dist": "NODE_ENV=production webpack",
"build": "NODE_ENV=production babel src --out-dir lib && yarn build:dist",
"build": "babel src --out-dir lib && yarn build:dist",
"lint": "standard",
"start": "NODE_ENV=development babel --watch src --out-dir lib & webpack --colors --watch",
"start": "babel --watch src --out-dir lib & webpack --colors --watch",
"storybook": "start-storybook -p 9001 -c .storybook",
"prepublish": "yarn run build"
},
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
}),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV
NODE_ENV: JSON.stringify(NODE_ENV)
}
})
]
Expand Down

0 comments on commit 0ab848e

Please sign in to comment.