Skip to content

[Bun 1.2] relative links in css breaks the build #720

@AlbertSabate

Description

@AlbertSabate

Describe the bug
When using a relative file in a url() from a css file, this breaks the build.

Add the following code in a .css

@font-face {
  font-family: "Exo";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/exo-italic-variablefont-wght.ttf)
    format("truetype-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

Remember to make sure the file exists in public folder.

Then when you try to build brisa the execution will break.

Should not break and build as normal if the file exists.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions