Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Unable to load custom resource #1

Open
lumimario opened this issue Sep 23, 2021 · 0 comments
Open

Unable to load custom resource #1

lumimario opened this issue Sep 23, 2021 · 0 comments

Comments

@lumimario
Copy link

I can't figure out how to load a custom css using the RequireClientResources property. I have tried different approaches:

  • created a custom client resource provider, but the resource is always trying to be taken from the Episerver Shell instead of my provider. In this case, I'm passing my resource name to the RequireClientResources property.
  • I have also included the path to the file into the RequireClientResources. In this case the file is loaded but with a mime-type of javascript, so the css doesn't load.

Are you able to provide an example, please?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant