I had totally misunderstood how npm and django applications needed to work together. Don't try and automatically bridge the npm and the django. Create a minified js file from the npm project and just serve that min js file in static and call it a day. In the case of htmx, you can just download htmx.min.js and save as a text file to serve from static directory.