Skip to content

fix: ensure CSS URL references are absolute when paths.relative is false#16327

Closed
Nic-Polumeyv wants to merge 1 commit into
sveltejs:mainfrom
Nic-Polumeyv:fix-relative-css-urls
Closed

fix: ensure CSS URL references are absolute when paths.relative is false#16327
Nic-Polumeyv wants to merge 1 commit into
sveltejs:mainfrom
Nic-Polumeyv:fix-relative-css-urls

Conversation

@Nic-Polumeyv

Copy link
Copy Markdown
Contributor

When paths.relative is false, the hook that rewrites asset URLs inside emitted CSS still made them relative to the stylesheet, so they no longer resolved against the configured base. The rewrite now bails when paths.relative is false and the URLs stay absolute. The options test app gained a PATHS_RELATIVE knob and the paths suite now covers both settings.

Split out of #16307.


  • Please make sure the PR passes tests and lint checks

@pkg-svelte-dev

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from bea8c22:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/bea8c22f7488db0c0afe03237e1e04c47736a11c

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/16327

Note

This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed.

@changeset-bot

changeset-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bea8c22

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@teemingc

Copy link
Copy Markdown
Member

Duplicate of #16315

@teemingc teemingc marked this as a duplicate of #16315 Jul 11, 2026
@teemingc teemingc closed this Jul 11, 2026
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.

2 participants