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

Does not work on IIS #193

Open
gumbarros opened this issue Jul 15, 2024 · 1 comment
Open

Does not work on IIS #193

gumbarros opened this issue Jul 15, 2024 · 1 comment

Comments

@gumbarros
Copy link

gumbarros commented Jul 15, 2024

Describe the bug
Des not work on IIS. When attempting to use the SassCompiler with an ASP.NET Core application hosted on IIS, the compiler fails to process Sass files.

To Reproduce
Steps to reproduce the behavior:

  1. Set up an ASP.NET Core application.
  2. Install and configure the SassCompiler as per the documentation.
  3. Deploy the application to IIS.
  4. Attempt to load a page that uses Sass styles.
  5. Page does not load

Expected behavior
The SassCompiler should correctly process Sass files into CSS when the application is hosted on IIS, without any errors.

Desktop (please complete the following information):

  • OS: Windows Server
  • Browser: Firefox
  • Version: 128

Smartphone (please complete the following information):

  • Device: iPhone 12
  • OS: iOS 14.6
  • Browser: Safari
  • Version: Latest

Additional context
This issue occurs specifically when hosting the application on IIS. It works as expected when running locally using Kestrel.

@sleeuwen
Copy link
Collaborator

Hi @gumbarros ,

I don't have access to a server running IIS, but if I add the property <SassCompilerIncludeRuntime>true</SassCompilerIncludeRuntime> to my csproj, then run dotnet publish -c Release -o publish, I do see that the sass executables is copied to the publish directory and it can run the sass file watcher without issues.

As long as the sass executables (dart.exe and sass.snapshot in the runtimes/- folder) are available then it should work. And as far as I can see, it does work when running a published project in release mode via Kestrel.

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