Move CSS and JS assets to directory in project root #72

Merged
vlw merged 1 commit from refs/pull/72/head into master 2026-04-05 12:18:11 +02:00
vlw commented 2026-04-05 11:57:13 +02:00 (Migrated from codeberg.org)

In this PR we move all of the CSS and JavaScript assets from the public assets directory to a new directory in the project root. The main reason for this is that I would like to believe this makes them easier to find. Since all CSS and JS is bundled with each page anyways there is no need to access these directly from a public directory. The main argument against this I think would be "transparency". We already run this site with display_php_source=true in Vegvisir (so page source code can be inspected by appending .php to the end of a url. But there is of course no reason to trust that it's the actual source code.

In this PR we move all of the CSS and JavaScript assets from the public assets directory to a new directory in the project root. The main reason for this is that I would like to believe this makes them easier to find. Since all CSS and JS is bundled with each page anyways there is no need to access these directly from a public directory. The main argument against this I think would be "transparency". We already run this site with `display_php_source=true` in Vegvisir (so page source code can be inspected by appending `.php` to the end of a url. But there is of course no reason to trust that it's the actual source code.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
vlw/vlw.se!72
No description provided.