Skip to content

[Copy] Copy static files into the build and register them in the manifest#16

Merged
Kocal merged 1 commit into
symfony:mainfrom
Kocal:feat/copy-option
Jul 11, 2026
Merged

[Copy] Copy static files into the build and register them in the manifest#16
Kocal merged 1 commit into
symfony:mainfrom
Kocal:feat/copy-option

Conversation

@Kocal

@Kocal Kocal commented Jul 11, 2026

Copy link
Copy Markdown
Member
Q A
Bug fix? no
New feature? yes
Deprecations? no
Issues Fix #...
License MIT

Add a copy option that copies static files (images, fonts) referenced by
a stable path from Twig into the build output and records them in
manifest.json, so the asset() helper resolves them to their URL. Names are
content-hashed in build mode and verbatim in dev; files are written under
outputPath (public/build) and served by the Symfony web server, so they are
available whether or not the dev server is running.

Implemented for both Vite and Rsbuild on a shared, bundler-agnostic core.

@Kocal Kocal self-assigned this Jul 11, 2026
@Kocal Kocal force-pushed the feat/copy-option branch from 238a462 to 4bfa8fd Compare July 11, 2026 16:24
@Kocal Kocal force-pushed the feat/copy-option branch from c66f1e1 to b8e4809 Compare July 11, 2026 17:31
@Kocal Kocal merged commit 1857056 into symfony:main Jul 11, 2026
16 checks passed
@Kocal Kocal deleted the feat/copy-option branch July 11, 2026 17:31
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.

1 participant