Skip to content

[Question] Is there a way to force SASS compilation on every build? #258

@yso8

Description

@yso8

Hi,

I am using this package in a Blazor WASM project. I am running into a situation where my generated site.css exists but contains incorrect/stale styles (eg. after switching git branches).

The Problem: It seems the compiler skips the task because it detects no changes in the source files, but I need to force a regeneration to ensure the CSS is correct. I tried adding a task in my .csproj (Target BeforeBuild/Before Sass Compiler) to remove the .css file, but it doesn't seem to trigger the SASS compiler to run again.

The Question: Is there an existing property or configuration (like true) to force the SASS compilation on every build, regardless of the file state?

I might have missed an existing option in the documentation.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions