[ad_1]
I’ve enqueued my custom JavaScript file in functions.php, but I want to divide up my js into more files. My current path to app.js is
/assets/js/app.js
I wanted to create a new folder containing files
/assets/js/partials/custom.js
I try and import the custom.js file into the app.js file, but I just get an error if I try to call a function from custom.js.
How can I achieve this within WordPress without having to enqueue like 10 different JavaScript files?
[ad_2]