propshaft icon indicating copy to clipboard operation
propshaft copied to clipboard

Missing asset log message for static assets in Propshaft 1.3+

Open wlipa opened this issue 5 months ago • 11 comments

I have an app with a public/static directory which I manually version. It has things that don't change much like fonts and certain vendored js. In previous versions of propshaft, CSS urls could refer to these assets without an issue, but in the latest I get messages like this:

Unable to resolve '/static/fonts/Inter-v4.0/InterVariable.woff2' for missing asset 'static/fonts/Inter-v4.0/InterVariable.woff2' in main.css

The CSS declaration is:

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  src: url('/static/fonts/Inter-v4.0/InterVariable.woff2') format('woff2');
}

I tried adding public/static to the excluded directories, but no luck. How can I refer to particular static assets without triggering Propshaft digesting? I want to leave these URLs exactly as is.

wlipa avatar Sep 25 '25 18:09 wlipa