Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
static: Replace handlebars static images with their require'd versions.
Alex Vandiver5d0d0ba4a958
diff --git a/static/templates/about_zulip.hbs b/static/templates/about_zulip.hbsindex 0103bd7688a..21e0e2e538d 100644--- a/static/templates/about_zulip.hbs+++ b/static/templates/about_zulip.hbs@@ -3,7 +3,7 @@<button type="button" class="exit" aria-label="{{t 'Close' }}"><span aria-hidden="true">×</span></button><div class="modal-body"><div class="about-zulip-logo">- <a target="_blank" rel="noopener noreferrer" href="https://zulip.com"><img src="/static/images/logo/zulip-org-logo.svg" alt="{{t 'Zulip' }}" /></a>+ <a target="_blank" rel="noopener noreferrer" href="https://zulip.com"><img src="../images/logo/zulip-org-logo.svg" alt="{{t 'Zulip' }}" /></a></div><p><strong>Zulip Server</strong>diff --git a/static/templates/giphy_picker.hbs b/static/templates/giphy_picker.hbsindex ee05cdcbb79..67cfa548ebf 100644--- a/static/templates/giphy_picker.hbs+++ b/static/templates/giphy_picker.hbs@@ -15,7 +15,7 @@<div class="giphy-content"></div></div><div class="popover-footer">- <img src="/static/images/giphy/GIPHY_attribution.png" alt="{{t 'GIPHY attribution' }}" />+ <img src="../images/giphy/GIPHY_attribution.png" alt="{{t 'GIPHY attribution' }}" /></div></div></div>diff --git a/static/templates/keyboard_shortcuts.hbs b/static/templates/keyboard_shortcuts.hbsindex 4772e72f3f9..df89603d808 100644--- a/static/templates/keyboard_shortcuts.hbs+++ b/static/templates/keyboard_shortcuts.hbs@@ -233,7 +233,7 @@{{t 'React to selected message with' }}<img alt=":thumbs_up:"class="emoji"- src="/static/generated/emoji/images/emoji/unicode/1f44d.png"+ src="../generated/emoji/images/emoji/unicode/1f44d.png"title=":thumbs_up:"/></td><td><span class="hotkey"><kbd>+</kbd></span></td>diff --git a/static/templates/more_topics_spinner.hbs b/static/templates/more_topics_spinner.hbsindex 38919ac6b3b..01b471303a6 100644--- a/static/templates/more_topics_spinner.hbs+++ b/static/templates/more_topics_spinner.hbs@@ -1,3 +1,3 @@<li class="searching-for-more-topics">- <img src="/static/images/loading/loading-ellipsis.svg" alt="" />+ <img src="../images/loading/loading-ellipsis.svg" alt="" /></li>diff --git a/static/templates/settings/admin_user_group_list.hbs b/static/templates/settings/admin_user_group_list.hbsindex 08f7df9a05d..f50389de19c 100644--- a/static/templates/settings/admin_user_group_list.hbs+++ b/static/templates/settings/admin_user_group_list.hbs@@ -6,7 +6,7 @@<span class="spacer">—</span><span class="description" data-placeholder="{{t 'Description' }}" contenteditable="true">{{description}}</span><button class="button save-status sea-green small">- <img class="checkmark" src="/static/images/checkbox-green.svg" />+ <img class="checkmark" src="../../images/checkbox-green.svg" />{{t 'Saved' }}</button><button class="button save-status btn-danger small">diff --git a/static/templates/settings/image_upload_widget.hbs b/static/templates/settings/image_upload_widget.hbsindex 8d2c261618c..557b338c151 100644--- a/static/templates/settings/image_upload_widget.hbs+++ b/static/templates/settings/image_upload_widget.hbs@@ -19,7 +19,7 @@{{ upload_text }}</span><span class="upload-spinner-background">- <img class="image_upload_spinner" src="/static/images/loading/tail-spin.svg" alt="" />+ <img class="image_upload_spinner" src="../../images/loading/tail-spin.svg" alt="" /></span></div><img class="image-block" src="{{ image }}"/>diff --git a/webpack.config.ts b/webpack.config.tsindex 2df8a264d59..f1c7cec6352 100644--- a/webpack.config.ts+++ b/webpack.config.ts@@ -146,6 +146,10 @@ export default (env: {minimize?: boolean} = {}, argv: {mode?: string}): webpack."tooltip_hotkey_hints",],preventIndent: true,+ // This replaces relative image resources with+ // a computed require() path to them, so their+ // webpack-hashed URLs are used.+ inlineRequires: /^(\.\.\/)+(images|generated\/emoji\/images)\//,},},// load fonts and files