Fix django-webpack-loader setup when running tests (#4128)

* Add an integration test

This should cover the problem raised for webpack loader issues

* Add a DummyWebpackLoader for running tests

* Replace DummyWebpackLoader by the one from webpack_loader package

* Fix post-gen hook

* Remove integration test
This commit is contained in:
Bruno Alla 2023-02-06 16:16:48 +00:00 committed by GitHub
parent d76c3de4e6
commit 4080e9a86d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,5 +29,13 @@ EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend"
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
TEMPLATES[0]["OPTIONS"]["debug"] = True # type: ignore # noqa F405 TEMPLATES[0]["OPTIONS"]["debug"] = True # type: ignore # noqa F405
{%- if cookiecutter.frontend_pipeline == 'Webpack' %}
# django-webpack-loader
# ------------------------------------------------------------------------------
WEBPACK_LOADER["DEFAULT"][ # noqa F405
"LOADER_CLASS"
] = "webpack_loader.loader.FakeWebpackLoader"
{%- endif %}
# Your stuff... # Your stuff...
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------