Page MenuHomePhabricator

Replace oyejorge/less with a functional CSS preprocessor or move to vanilla CSS
Closed, ResolvedPublic3 Estimated Story Points

Description

We currently use Less with the abandoned oyejorge/less.php library. As of March 2023, it would seem it's starting to error out and doesn't regenerate assets like it should. The error log shows:

ErrorException: Trying to access array offset on value of type null in /data/project/plagiabot/vendor/oyejorge/less.php/lib/Less/Parser.php:1927

We can try moving to another Less library, or just move to normal CSS.

The other motivation here is for local installs. Using the default PHP server, the MIME type apparently makes it bypass the router, and the Less can't be generated. So for years now, most of us have accepted we can only test CSS changes on staging (or use Apache or something on your local). Now, even staging is erroring out, so it's time to replace oyejorge/less.php with something else.

Acceptance criteria

  • Make the styles load, even on local installs with the default PHP server

Event Timeline

More of an engineering-only thing, so boldly closing as resolved.