Skip to content

support bundling of url properties (like for @font-face + src) during CSS file optimization #1199

@thescientist13

Description

@thescientist13

Summary

As observed in ProjectEvergreen/www.greenwoodjs.dev#9, it appears that certain URL based CSS features are not bundling (like we do with @import), like in this example for @font-face, which will just yield a 404 in production builds.

 <style>
   @font-face {
     font-family: "Geist-Sans";
     src: url('../../node_modules/geist/dist/fonts/geist-sans/Geist-Regular.woff2') format("truetype");
   }
 </style>

Details

This should bundle (e.g. copy) the file into the build output automatically for @font-face references and ideally thing else that is of type Url

Metadata

Metadata

Labels

CLIP0Critical issue that should get addressed ASAPalpha.2featureNew feature or requestquestionFurther information is requestedv0.30.0

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions