Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Philipp Spiess
0b65e24b35 Vite: Don't rebase absolute url() 2024-12-02 18:12:23 +01:00
2 changed files with 5 additions and 1 deletions

View file

@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
- Nothing yet!
### Fixed
- Ensure absolute `url()`s inside imported CSS files are not rebased when using `@tailwindcss/vite`
## [4.0.0-beta.4] - 2024-11-29

View file

@ -51,6 +51,8 @@ export async function rewriteUrls({
let promises: Promise<void>[] = []
function replacerForDeclaration(url: string) {
if (url[0] === '/') return url
let absoluteUrl = path.posix.join(normalizePath(base), url)
let relativeUrl = path.posix.relative(normalizePath(root), absoluteUrl)