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:
Anders Kaseorg
2021-03-16 19:11:19 -07:00
committed by Tim Abbott
parent bdcbd53db7
commit 738532ba51
10 changed files with 45 additions and 35 deletions

View File

@@ -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)