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

Commit e8e8f3a

Browse files
yarnballtimdorr
authored andcommitted
Missing step- adding path the webpack.js (#224)
Raised issue, asked to to PR. #218 (comment)
1 parent 6be300f commit e8e8f3a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lessons/11-productionish-server/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ scripts entry in package.json to look like this:
2727
},
2828
```
2929

30+
In the root directly, go open up `webpack.config.js` and add the publicPath '/' as per below:
31+
```
32+
// webpack.config.js
33+
output: {
34+
path: 'public',
35+
filename: 'bundle.js',
36+
publicPath: '/'
37+
},
38+
```
39+
3040
When you run `npm start` it checks if the value of our `NODE_ENV` environment variable is
3141
`production`. If yes, it runs `npm run start:prod`, if not, it runs
3242
`npm run start:dev`.

0 commit comments

Comments
 (0)