mirror of https://github.com/zulip/zulip.git
Include compiled handlebar templates before our code
I believe this was the source of the "Handlebars.compile is not a function" errors, though I don't know why so few users got it. (imported from commit f4a72e35bf25f679461d3c9e6938d118fec30278)
This commit is contained in:
parent
5441e36167
commit
3419619234
|
@ -428,7 +428,9 @@ JS_SPECS = {
|
|||
if not DEBUG:
|
||||
# This file is generated by update-prod-static.
|
||||
# In dev we fetch individual templates using Ajax.
|
||||
JS_SPECS['app']['source_filenames'].append('templates/compiled.js')
|
||||
app_srcs = JS_SPECS['app']['source_filenames']
|
||||
app_srcs.insert(app_srcs.index('third/handlebars/handlebars.runtime.js') + 1,
|
||||
'templates/compiled.js')
|
||||
|
||||
|
||||
PIPELINE_JS = {} # Now handled in tools/minify-js
|
||||
|
|
Loading…
Reference in New Issue