-
-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where is bundle.js on the filesystem? #3156
Comments
Alright, so I see in The comment states:
My question is now, how can I configure this to produce a real file? |
Currently you can't |
In your case, Django is serving the html + css + js so it's incompatible with the config of CRA |
It's my understanding that create-react-app is the current best practice for developing react apps, is that correct? If so, supporting Rails and Django interoperability (or the flexibility to work in any back-end framework) should be a high priority, since it's a typical setup to have React work on top of a DB-backed REST api. |
Not really, CRA isn't the best practices for react apps, it's a powerfull tool to start a SPA in React But if you want to use Django just to send an html file with some data inside but not in the js, you still can you CRA without ejecting |
So CRA was designed for this case and tried to be really easy to use without almost any config. |
I understand, thanks. I will look into ejecting my application into something more custom. |
I don't know how you want django to render your react app, but what're looking for is certainly get rid of the chunkhash in webpack.config.prod.js (because the files'name change at every build which isn't perfect for consistent serving with Django) or changing the start.js file to only trigger a webpack build with the conf webpack.config.dev.js and not triggering webpackDevServer |
I'm doing this so I can better customize econplayground.js with our django app for development. I wasn't aware this was an option before I started this discussion here: facebook/create-react-app#3156 https://github.com/facebookincubator/create-react-app#converting-to-a-custom-setup
I'm doing this so I can better customize econplayground.js with our django app for development. I wasn't aware this was an option before I started this discussion here: facebook/create-react-app#3156 https://github.com/facebookincubator/create-react-app#converting-to-a-custom-setup
Hi,
I'm accustomed to symlinking
bundle.js
to a file in my Django application's media directory during development, outlined here: https://github.com/ccnmtl/juxtapose#development-notesHowever, with my newly-created react app that I made with
create-react-app
, I runnpm run start
and don't seebuild/bundle.js
on the filesystem. In the browser I do see http://localhost:3000/static/js/bundle.js. Does this path exist on the filesystem so I can symlink to it?The text was updated successfully, but these errors were encountered: