Closed wieringen closed 8 years ago
no clue :D I haven't done any prod builds yet so that part might not be ideal
@wieringen as far as I've tested this now it works fine as long as you're index.html is in the root.
i.e. if you're going to say http://localhost:3000/static/ it will output <noscript[...
in such cases either set a
<Route path="/" component={App}>
@tj maybe an environment based config?
hmmm I don't think it would ever not be root for me personally
well for me neither but it would at least fix this issue. anyways i think having a split up local and remote configuration in general wouldn't be that bad for a boilerplate.
true true, might use it for feature flags or something. in general I'm trying to keep it to a minimal set of things I actually use. I'll come back to it if I end up using some flags :D
sure, that's totally understandable. it kinda needs to stay a boilerplate, not a framework, right (or planning on something bigger)? ;) Although I would not mind about that one single config file. but it's your repo so feel free to drop it
yep just boiler for now, definitely not attempting to make it work for everyone, that's what I found most boilers were so I wanted something a bit cleaner that wasn't trying to cater to everyone's needs
I am trying to create a production build but after I run 'npm run build' and open the static dir on localhost in my browser. I see a blank index page with these elements.
<div id="root"><noscript data-reactid=".0"></noscript></div>
What am I doing wrong?