Skip to content

Commit 36e4008

Browse files
yarnballgitpash
authored andcommitted
Missing step- adding path the webpack.js (#224)
Raised issue, asked to to PR. reactjs/react-router-tutorial#218 (comment)
1 parent 5584f5c commit 36e4008

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)