Settings overrides are still relative to library location

Created on 27 November 2024, about 2 months ago

I used the $settings['vite'] method in settings.php to set global values for vite because I have distributed libraries but they all get bundled at the root of the project.

The problem I'm facing is that I can't tell vite that the manifest is at ./.vite/manifest.json because the location of the library being processed is always prepended to that.

I'd like the settings version to use a project-relative value, which will probably break existing usages. I've worked out a way around it which is to list the manifest as something like manifest: '../../../../.vite/manifest.json' in every library definition, but it's not the best DX so I thought I'd bring it up to see what the community thinks?

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇦🇺Australia darvanen Sydney, Australia

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024