Skip to content

Commit

Permalink
Merge pull request wesbos#76 from Asjas/update-production-deployment
Browse files Browse the repository at this point in the history
Update production deployment config
  • Loading branch information
wesbos authored Nov 29, 2021
2 parents 18eb524 + 6d6f67f commit 7061e20
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions starter-files/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"scripts": {
"prod": "node ./start.js",
"build": "webpack",
"watch": "nodemon ./start.js --ignore public/",
"start": "concurrently \"npm run watch\" \"npm run assets\" --names \"💻,📦\" --prefix name",
"assets": "webpack -w",
Expand Down
2 changes: 1 addition & 1 deletion starter-files/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const path = require("path");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const env = require("dotenv").config({ path: "variables.env" });
const nodeEnv = env.parsed.NODE_ENV;
const nodeEnv = process.env.NODE_ENV || env.parsed.NODE_ENV;

/*
webpack sees every file as a module.
Expand Down
1 change: 1 addition & 0 deletions stepped-solutions/45 - Finished App/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"scripts": {
"prod": "node ./start.js",
"build": "webpack",
"watch": "nodemon ./start.js --ignore public/",
"start": "concurrently \"npm run watch\" \"npm run assets\" --names \"💻,📦\" --prefix name",
"assets": "webpack -w",
Expand Down
2 changes: 1 addition & 1 deletion stepped-solutions/45 - Finished App/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const path = require("path");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const env = require("dotenv").config({ path: "variables.env" });
const nodeEnv = env.parsed.NODE_ENV;
const nodeEnv = process.env.NODE_ENV || env.parsed.NODE_ENV;

/*
webpack sees every file as a module.
Expand Down

0 comments on commit 7061e20

Please sign in to comment.