Skip to content

500 Error thrown when accessing the bundle having scss files. #85

@tanzeelashfaq

Description

@tanzeelashfaq

Setup

Visual Studio 2022 - 17.8.3
.NET - 8.0
LigerShark.WebOptimizer.Core - 3.0.433
LigerShark.WebOptimizer.Sass - 3.0.123

Test Setup

builder.Services.AddJsEngineSwitcher(options =>
{
options.AllowCurrentProperty = false;
options.DefaultEngineName = ChakraCoreJsEngine.EngineName;
})
.AddChakraCore()
.AddJint()
.AddJurassic()
.AddMsie(options =>
{
options.EngineMode = JsEngineMode.ChakraIeJsRt;
})
.AddNiL()
.AddNode()
.AddV8()
.AddVroom()
.AddYantra()
;

services.AddWebOptimizer(pipeline =>
{
pipeline.AddScssBundle("/site-globalscss",
"/css/Site.scss",
"/css/ProximaNova.scss"
);

 pipeline.MinifyCssFiles();
 pipeline.MinifyJsFiles();

});

Result

When we try to use "" in head section, this works perfect on debug, local iis but when deployed on our production this throws 500 error..

In image below you may see other only css works fine, issue is only with .scss bundle.

Image

Please advise a solution...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions