Open
Description
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.
Metadata
Assignees
Labels
No labels