Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Lesson 11 fix. #242

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lessons/11-productionish-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down