Answer the question
In order to leave comments, you need to log in
How to properly organize a javascript bundle?
There are multiple pages and each page has its own unique scripts.
For example:
Answer the question
In order to leave comments, you need to log in
Try to create your own entry point for each page, and put global scripts that work everywhere in global.js and import it on each page.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question