Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuget Scss import #72

Closed
Baklap4 opened this issue Mar 2, 2023 · 1 comment
Closed

Nuget Scss import #72

Baklap4 opened this issue Mar 2, 2023 · 1 comment

Comments

@Baklap4
Copy link

Baklap4 commented Mar 2, 2023

Hello,

I've ran into the issue that i'm trying to reference a scss file from a nuget package (devexpress.blazor.themes in this case).
And saw that the original webcompiler had this issue: madskristensen/WebCompiler#480

Basicly what i'm wondering is: Can we in fact import a scss file from an installed nuget package and use it within our site.scss

When trying this we run into the issue that the scss file cannot be found thus reproducing above issue with the latest excubo webcompiler.

@stefanloerwald
Copy link
Member

This is beyond the control of the compiler. The files in _content literally don't exist. This is all magic that comes in when an app is deployed, so much later in the build and deploy process.

What you will have to do if you want to rely on scss from packages is to find the correct path (i.e. the nuget package folder). Then you can either reference that path in your scss or use a build target to copy it to a different location, e.g. in your project folder.

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

No branches or pull requests

2 participants