Closed stursby closed 8 years ago
Or add output.publicPath = '/'
to the webpack config
In version 0.6.0
I have added the options --no-inject
and --absolute-path
to the cli, which should work for your case. Also the dev server now uses absolute paths by default. Thank you both @erikhuisman and @stursby.
So I ran into an issue using
reactpack
withreact-router
wherebundle.js
couldn't be loaded on nested routes because it was injected as a relative path. Settinginject: false
in config.js and manually includingbundle.js
in myindex.ejs
template allows it to work on all routes. For example:Here's my updated
config.js
:And my
index.ejs
:So maybe adding an option/flag like
--no-inject
?Let me know your thoughts.