mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
requirements: Remove django-webpack-loader.
It does not seem like an official version supporting Webpack 4 (to say nothing of 5) will be released any time soon, and we can reimplement it in very little code. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
bdcbd53db7
commit
738532ba51
@@ -9,7 +9,7 @@ from django.utils.timesince import timesince
|
||||
from jinja2 import Environment
|
||||
from two_factor.templatetags.two_factor import device_action
|
||||
|
||||
from zerver.templatetags.app_filters import display_list, render_markdown_path
|
||||
from zerver.templatetags.app_filters import display_list, render_markdown_path, webpack_entry
|
||||
|
||||
|
||||
def environment(**options: Any) -> Environment:
|
||||
@@ -17,13 +17,12 @@ def environment(**options: Any) -> Environment:
|
||||
env.globals.update(
|
||||
default_page_params={
|
||||
"debug_mode": settings.DEBUG,
|
||||
"webpack_public_path": staticfiles_storage.url(
|
||||
settings.WEBPACK_LOADER["DEFAULT"]["BUNDLE_DIR_NAME"],
|
||||
),
|
||||
"webpack_public_path": staticfiles_storage.url(settings.WEBPACK_BUNDLES),
|
||||
},
|
||||
static=staticfiles_storage.url,
|
||||
url=reverse,
|
||||
render_markdown_path=render_markdown_path,
|
||||
webpack_entry=webpack_entry,
|
||||
)
|
||||
|
||||
env.install_gettext_translations(translation, True)
|
||||
|
||||
Reference in New Issue
Block a user