Add helper method to get (versioned) chunk path

Created on 19 December 2023, 11 months ago

Problem/Motivation

I have some images I'd like to use in a template and have them built/managed by Vite. Since Vite versions all files, I need to get the built path from the manifest.

Steps to reproduce

N/A

Proposed resolution

Create a method to get the (versioned) path to a chunk and a complementary Twig function.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇳🇱Netherlands JaZo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @JaZo
  • Merge request !5Resolve #3409700 "Chunk path helper method" → (Open) created by JaZo
  • Pipeline finished with Failed
    11 months ago
    #65805
  • Pipeline finished with Failed
    11 months ago
    #65812
  • First commit to issue fork.
  • Pipeline finished with Failed
    about 1 month ago
    #304013
  • Pipeline finished with Success
    about 1 month ago
    #304032
  • 🇳🇱Netherlands timohuisman Leiden, Netherlands

    The MR is updated with the latest changes from 1.2.1.

    Attached is a patch containing the current state of the MR, so it can be safely used with composer-patches.

  • First commit to issue fork.
  • 🇵🇱Poland wotnak

    Maybe a better name for the twig function would be something like `vite_get_chunk_path` it would better describe what it does and would allow adding more vite related twig functions in the future if needed.

    Also before merge some documentation with usage example in the README will be needed.

  • Pipeline finished with Success
    28 days ago
    Total: 168s
    #319767
  • 🇳🇱Netherlands JaZo

    Thanks for the feedback! I've renamed the Twig function and added documentation.

  • 🇳🇱Netherlands JaZo

    Updated patch file for composer-patches.

  • 🇳🇱Netherlands pdewringer

    Reroll patch #9 to make it applicable using composer.

Production build 0.71.5 2024