Skip to content

Missing asset log message for static assets in Propshaft 1.3+ #254

@wlipa

Description

@wlipa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions