Download the PHP package bohnmedia/contao-vite-bundle without Composer
On this page you can find all versions of the php package bohnmedia/contao-vite-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bohnmedia/contao-vite-bundle
More information about bohnmedia/contao-vite-bundle
Files in bohnmedia/contao-vite-bundle
Package contao-vite-bundle
Short Description Integrates pentatrion/vite-bundle into Contao 5 and exposes Vite entry tags and asset URLs via both Twig functions and insert tags.
License MIT
Informations about the package contao-vite-bundle
Contao Vite Bundle
A small Contao 5 wrapper around pentatrion/vite-bundle. It
registers PentatrionViteBundle in Contao Manager Edition and exposes the
most common rendering helpers as Contao insert tags.
Installation
The bundle expects Vite to output its build artifacts into public/build/
(the default).
Rendering entry tags
Render the link and script tags for a Vite entry.
Twig
Insert tag
If the entry name is missing or rendering fails (e.g. unknown entry,
broken entrypoints.json), the insert tags render as an empty string and
log an error instead of throwing.
Resolving individual asset URLs
A named asset package vite is registered automatically, so Vite-hashed
assets resolve via Symfony's asset() function or Contao's {{asset::}}
insert tag.
Twig
Insert tag
License
MIT.
All versions of contao-vite-bundle with dependencies
contao/core-bundle Version ^5.0
contao/manager-plugin Version ^2.0
pentatrion/vite-bundle Version ^8.0
symfony/http-kernel Version ^6.4 || ^7.0