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

SCSS not compiling on time on the published website (.NET 5, IIS) #51

Open
ThiagoMaurer opened this issue Apr 20, 2022 · 0 comments
Open

Comments

@ThiagoMaurer
Copy link

ConfigureServices:


services.AddControllersWithViews().AddRazorRuntimeCompilation();

services.AddWebOptimizer(pipeline => { 
      pipeline.CompileScssFiles();
});

Configure:

app.UseWebOptimizer();

app.UseHttpsRedirection();
app.UseStaticFiles();

When I publish it to my website on IIS, the SCSS does not compile to CSS ontime. The first time that someone access the website on a certain period of time, none of the SCSS files compiles before the page shows. The pages starts to work normally after reloading it with F5. But it needs to be done on every view/page.

I dont know why this happens, it never happens when I run it locally, only on the published version.

@ThiagoMaurer ThiagoMaurer changed the title SCSS not compiling on time (.NET 5) SCSS not compiling on time on the published website (.NET 5, IIS) Apr 20, 2022
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

1 participant