Skip to content

Commit

Permalink
fix(environment): always bundle and run correct environment
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmeinke committed Feb 8, 2016
1 parent 8053fd3 commit 0fb3872
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
"createStaticJs:pro": "mkdir -p ./static/js && cat ./src/common/config/index.json | json production.scripts | json -ga file | xargs -I % cp % ./static/js/",
"lint": "eslint src test",
"start": "npm run start:pro",
"start:dev": "node ./dist/server.js",
"start:pro": "node ./dist/server.min.js",
"start:dev": "NODE_ENV=development node ./dist/server.js",
"start:pro": "NODE_ENV=production node ./dist/server.min.js",
"test": "mocha --compilers js:babel-core/register,css:test/compiler.js test/**/*.js"
},
"version": "2.0.0"
Expand Down
1 change: 1 addition & 0 deletions webpack/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default {
plugins: [
new webpack.DefinePlugin({
__DEVELOPMENT__: true,
'process.env.NODE_ENV': JSON.stringify( 'development' ),
}),
],
};

0 comments on commit 0fb3872

Please sign in to comment.