mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-10 19:57:09 +03:00
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:
parent
d76c3de4e6
commit
4080e9a86d
|
@ -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...
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user