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

[4.x] Add missing Vite content tag #9973

Merged
merged 1 commit into from
May 7, 2024
Merged

[4.x] Add missing Vite content tag #9973

merged 1 commit into from
May 7, 2024

Conversation

jimblue
Copy link
Contributor

@jimblue jimblue commented Apr 30, 2024

Related to #9972.

To inline Vite asset content you can use a new Antlers tag {{ vite:content src="path/to/vite/asset" }}

For exemple:

<script>{{ vite:content src="resources/js/manifest.js" }}</script>
<style>{{ vite:content src="resources/css/critical.css" }}</style>

@jimblue jimblue changed the title Fix missing Vite content tag (#9972) Fix missing Vite content tag Apr 30, 2024
@jimblue jimblue changed the title Fix missing Vite content tag [4.x] Fix missing Vite content tag Apr 30, 2024
@duncanmcclean duncanmcclean changed the title [4.x] Fix missing Vite content tag [4.x] Add missing Vite content tag Apr 30, 2024
@duncanmcclean duncanmcclean linked an issue May 7, 2024 that may be closed by this pull request
@jasonvarga jasonvarga merged commit f05bf09 into statamic:4.x May 7, 2024
22 checks passed
duncanmcclean added a commit to statamic/docs that referenced this pull request May 9, 2024
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.

Add missing Vite content tag
3 participants