Skip to content

Commit

Permalink
build: remove implict need for .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
jnmorse committed Jul 10, 2019
1 parent 0f1aec1 commit da809e3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"scripts": {
"build": "webpack --config ./webpack/client/prod.js",
"dev": "nodemon index.js",
"postinstall": "cp sample.env .env",
"lint": "eslint .",
"start": "node index.js",
"pretest": "npm run build",
Expand Down
1 change: 0 additions & 1 deletion sample.env

This file was deleted.

8 changes: 0 additions & 8 deletions scripts/create-env-file.sh

This file was deleted.

2 changes: 1 addition & 1 deletion server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { publicPath, path } = config.output;
const app = express();
app.disable('x-powered-by');

const dev = process.env.NODE_ENV === 'development';
const dev = process.env.NODE_ENV === 'development' || true;

if (dev) {
/* eslint-disable global-require */
Expand Down

0 comments on commit da809e3

Please sign in to comment.