I’m relatively new to RequireJS and I have a problem that is probably a simple fix – In most instances I’m loading .js files, but one of my files loads templates with the .tpl extension and I’d like it not to automatically append .js (and end up trying to load mytemplate.tpl.js).
Is there a simple way to tell RequireJS (in one file only) to not do this?
You could use
noextrequirejs plugin.You can find it here: https://github.com/millermedeiros/requirejs-plugins