Skip to content

Devfront: internalisation de la librairie semantic-ui#2179

Open
vgreb wants to merge 2 commits intoafup:masterfrom
vgreb:feature/semantic-ui-no-cdn
Open

Devfront: internalisation de la librairie semantic-ui#2179
vgreb wants to merge 2 commits intoafup:masterfrom
vgreb:feature/semantic-ui-no-cdn

Conversation

@vgreb
Copy link
Copy Markdown
Collaborator

@vgreb vgreb commented Apr 3, 2026

Ajout de semantic-ui pour ne plus dépendre d'un cdn.

close #2175

@vgreb vgreb changed the title Devfront: internalisation de la library semantic-ui Devfront: internalisation de la librarie semantic-ui Apr 3, 2026
@vgreb vgreb changed the title Devfront: internalisation de la librarie semantic-ui Devfront: internalisation de la librairie semantic-ui Apr 3, 2026
@vgreb vgreb force-pushed the feature/semantic-ui-no-cdn branch 5 times, most recently from 07b4e93 to d3601e1 Compare April 4, 2026 13:14
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surcharge du répertoire final des assets après compilation (cf. https://symfony.com/doc/current/frontend/asset_mapper.html#serving-assets-in-dev-vs-prod).

@vgreb vgreb force-pushed the feature/semantic-ui-no-cdn branch 3 times, most recently from fa82a7a to ab3700f Compare April 4, 2026 16:01
@vgreb vgreb force-pushed the feature/semantic-ui-no-cdn branch from ab3700f to bd9f68c Compare April 7, 2026 08:47
/**
* cf. https://symfony.com/doc/current/frontend/asset_mapper.html#serving-assets-in-dev-vs-prod
*/
class PostCompilationCopyHandler implements PublicAssetsFilesystemInterface
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est à cause du htdocs ça ou autre chose ?

Si un jour on migre vers un public est-ce que cette classe sera encore nécessaire ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oui c'est en partie à cause de ça mais surtout parce que la commande asset-map:compile se base sur le paramètre %kernel.project_dir% qui dans notre cas est le répertoire app à la racine.
Ainsi, sans surcharge, les fichiers compilés seraient écrits dans app/public.

J'aurai pu surcharger la valeur de %kernel.project_dir% dans le composer.json config.extra.symfony-app-dir mais j'ai préféré éviter pour limiter les effets de bord.

@vgreb vgreb force-pushed the feature/semantic-ui-no-cdn branch from bd9f68c to 26d9a05 Compare April 7, 2026 19:09
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.

Importer le css de l'admin en local au lieu du CDN

3 participants