Re:Show HN: Django and React SaaS boilerplate tutorial
by czue on Friday December 25, 2020 @08:10AM
(#25536260)
When you say "tell webpack where to put the files" what do you mean exactly? I recommend just making one bundle per "app" (can be configured as different entry points in your webpack config), and then using the outputs as standard Django static files. I found django-webpack-loader to be a little to magical for my taste and solving a problem that didn't really exist for me (the need for refreshless hot reloading).
More details on this approach here: https://www.saaspegasus.com/guides/modern-javascript-for-dja...