Answer the question
In order to leave comments, you need to log in
How to build frontend for django?
Hello. I need to write a frontend using django templates. I would like each page to have some kind of common main.js, as well as page js, such as contact.js with code for this particular page.
Do you have any preparations for the structure?
I googled webpack-loader, but its disadvantage is that it injects one file into templates and does not split the code like typical code splitting.
Answer the question
In order to leave comments, you need to log in
Use a page wrapper with basic JS and just static files for included ones
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question