Skip to content

Allow loading NpmPackage assets with @StyleSheet #22475

@sissbruecker

Description

@sissbruecker

Describe your motivation

Currently it doesn't seem possible to load stylesheets from assets that have been copied over from an NpmPackage annotation using the @StyleSheet annotation.

For example, trying to load Font Awesome:

@NpmPackage(value = "@fortawesome/fontawesome-free", version = "latest, assets = {"./**:fontawesome"})  
@StyleSheet("fontawesome/css/all.css")  
public class App implements AppShellConfigurator {}

(not 100% sure what the assets path should be, the intention was to copy the whole package contents to fontawesome)

Since @StyleSheet is intended to become the standard way of including stylesheets in v25 we should aim to make this work.

Describe the solution you'd like

Including stylesheets from assets that have copied to static resources should work using @StyleSheet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    🪵Product backlog

    Status

    Next for Dev. Team

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions