Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add custom attributes using kwargs for dev mode #65

Merged
merged 1 commit into from
May 23, 2023

Conversation

petrprikryl
Copy link
Contributor

Need that for CSP even if the DJANGO_VITE_DEV_MODE is on. Custom attributes are currently skipped for DJANGO_VITE_DEV_MODE.

Use cases:

{% vite_asset 'entrypoint.js' nonce=CSP_NONCE %}
{% vite_hmr_client nonce=CSP_NONCE %}

@thijskramer thijskramer merged commit 42b3745 into MrBin99:master May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants