From 6e85345dc4154498882b9a09ae7b0450c5185da0 Mon Sep 17 00:00:00 2001 From: Jacob Bryan <jake@jakebryan.me> Date: Mon, 26 Sep 2016 02:41:28 +0000 Subject: [PATCH] You output the bundle.js into the folder 'public' so you need to include to proper path in the index.html file now. --- lessons/11-productionish-server/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lessons/11-productionish-server/README.md b/lessons/11-productionish-server/README.md index 30582eba..12842eb2 100644 --- a/lessons/11-productionish-server/README.md +++ b/lessons/11-productionish-server/README.md @@ -37,6 +37,13 @@ In the root directly, go open up `webpack.config.js` and add the publicPath '/' }, ``` +Now you will need to change the html since you changed the path to the output folder of the +bundle.js above. Go to index.html and change '/bundle.js' to '/public/bundle.js' as per below: +``` +<!-- index.html bundle location change --> +<script src="/public/bundle.js"></script> +``` + When you run `npm start` it checks if the value of our `NODE_ENV` environment variable is `production`. If yes, it runs `npm run start:prod`, if not, it runs `npm run start:dev`.