You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
@bryanj4 Thanks for the advice, man, worked like a charm. Note, though, that moving along with the tutorial, we:
a) Create the public directory
b) Move our index.html and index.css files there, as @yarnball has stated.
Which means it seems to be better to do the following:
Add the <script src="/public/bundle.js"></script> after we make a first change to the webpack.config.js
Then remove the /public part right in the end of the tutorial.
At least this is how I made it work. Hope anybody else will find this useful.
Activity
jakeecolution commentedon Sep 26, 2016
No the issue is when you keep
<script src="/bundle.js"></script>You should switch it to
<script src="/public/bundle.js"></script>jakeecolution commentedon Sep 26, 2016
#242 Check out my PR.
mawansui commentedon Sep 27, 2016
@bryanj4 Thanks for the advice, man, worked like a charm. Note, though, that moving along with the tutorial, we:
a) Create the public directory
b) Move our index.html and index.css files there, as @yarnball has stated.
Which means it seems to be better to do the following:
<script src="/public/bundle.js"></script>after we make a first change to the webpack.config.js/publicpart right in the end of the tutorial.At least this is how I made it work. Hope anybody else will find this useful.
smilingkylan commentedon Oct 27, 2016
I think I fixed it by changing ~line 12 of server.js to:
bondansebastian commentedon Dec 5, 2016
The output path of
webpack.config.jsbeforeserver.jsis modified should be set to root folder, otherwisebundle.jswill fail to load (inREADME.md)merriam commentedon Mar 21, 2017
Also bug #218, fix #310