Skip to content

Large library continues to slow down compile time, even though there are no changes. #74

@Bertie2011

Description

@Bertie2011

Hello, I'm back 😅

The library we have been using (which was already pretty big) decided to include their font icon library as dependency. Running a full compile takes like 5-10 minutes. This would be okay if it was the first time only, but every time any of our project files changes it seems to hang for that same amount of time. Only when not a single file is changed, it finishes within 5 seconds.

Is this a bug? Can we change our configuration to compile different scss files into separated .css files (even though they @import each other)? How can we get back to blazingly fast compile times?

Also, how can we get more insights into what the tool is doing? It might be nice to include some kind of verbose flag somewhere.

Reproduction case is attached.

  1. After downloading, go to .config/dotnet-tools.json and in Properties check the box to unblock.
  2. Run the script (if Smart Screen pops up, select More Info, Run Anyways), not sure if it will take a long time or will be fast.
  3. Run again, should be fast.
  4. Change my-styles.scss and try again, now it should take like 10 minutes.
    slow-scss-compilation.zip

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