mirror of https://github.com/zulip/zulip.git
webpack: Migrate archive bundle to webpack.
Tested by visiting localhost:9991/archive/streams/1/topics/denmark3.
This commit is contained in:
parent
fbdc21a161
commit
f8398238a9
|
@ -11,10 +11,10 @@
|
|||
}
|
||||
</style>
|
||||
|
||||
{{ minified_js('archive', csp_nonce)|safe }}
|
||||
{{ render_bundle('translations', attrs='nonce="%s"' % (csp_nonce)) }}
|
||||
{{ render_bundle('katex', attrs='nonce="%s"' % (csp_nonce)) }}
|
||||
{{ render_bundle('portico') }}
|
||||
{{ render_bundle('archive') }}
|
||||
{{ render_bundle('archive-styles') }}
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -3,6 +3,19 @@
|
|||
"./node_modules/sorttable/sorttable.js",
|
||||
"./static/styles/activity.scss"
|
||||
],
|
||||
"archive": [
|
||||
"./node_modules/xdate/src/xdate.js",
|
||||
"./node_modules/perfect-scrollbar/dist/perfect-scrollbar.js",
|
||||
"./node_modules/handlebars/dist/handlebars.runtime.js",
|
||||
"./static/js/archive.js",
|
||||
"./static/js/colorspace.js",
|
||||
"./static/js/floating_recipient_bar.js",
|
||||
"./static/js/timerender.js",
|
||||
"./static/js/templates.js",
|
||||
"./static/js/stream_color.js",
|
||||
"./static/js/scroll_bar.js",
|
||||
"./static/templates/compiled.js"
|
||||
],
|
||||
"portico": [
|
||||
"./static/js/portico/header.js",
|
||||
"./static/styles/portico-styles.scss"
|
||||
|
|
|
@ -927,23 +927,6 @@ JS_SPECS = {
|
|||
],
|
||||
'output_filename': 'min/zxcvbn.js'
|
||||
},
|
||||
# This is used for displaying archives.
|
||||
'archive': {
|
||||
'source_filenames': [
|
||||
'js/archive.js',
|
||||
'js/colorspace.js',
|
||||
'js/floating_recipient_bar.js',
|
||||
'js/timerender.js',
|
||||
'node_modules/handlebars/dist/handlebars.runtime.js',
|
||||
'js/templates.js',
|
||||
'js/stream_color.js',
|
||||
'js/scroll_bar.js',
|
||||
'node_modules/xdate/src/xdate.js',
|
||||
'node_modules/perfect-scrollbar/dist/perfect-scrollbar.js',
|
||||
'templates/compiled.js',
|
||||
],
|
||||
'output_filename': 'min/archive.js'
|
||||
},
|
||||
}
|
||||
|
||||
if DEVELOPMENT:
|
||||
|
|
Loading…
Reference in New Issue