[front-end, build] generated templates.js is now a requirejs module
[front-end] fix front-end in production mode