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

Missing step- adding path the webpack.config.js #224

Merged
merged 1 commit into from
Sep 21, 2016
Merged
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
10 changes: 10 additions & 0 deletions lessons/11-productionish-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ scripts entry in package.json to look like this:
},
```

In the root directly, go open up `webpack.config.js` and add the publicPath '/' as per below:
```
// webpack.config.js
output: {
path: 'public',
filename: 'bundle.js',
publicPath: '/'
},
```

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