Don't suppose you have managed to pre-compile Handlebars templates as part of the optimisation performed by django-require?
I'm using the popular require-handlebars plugin (
https://github.com/SlexAxton/require-handlebars-plugin) and have it working locally including running. r.js locally. I can successfully run my app using the optimised JS file, and all templates are precompiled into the file.
However, when optimising using django-require as part of collectstatic, it fails to find Handlebars with the following error:
Error: Error: ENOENT, no such file or directory '/tmp/tmpVm6ysT/js/lib/Handlebars.js'
In module tree:
main
app
views/header
hbs
Further up the output, I can see the file is Uglified to a different temp dir - Uglify2 file: /tmp/tmpTSPkW8/js/lib/handlebars.js
Comparing with the output from the local optimisation, the hbs templates appear to be being ignored when django-require runs r.js files starting !hbs
Any hints?
Thnx