Skip to main content
matthijsv80972039
Participant
January 21, 2022
Question

Compiling SASS > CSS is very slow

  • January 21, 2022
  • 1 reply
  • 1854 views

Dear Support Community,

I have recently started using SCSS to generate a CSS file from 3 seperate SCSS files. Dreamweaver compiles these three into one 'master' CSS file. It does this automaticcaly when saving the file, which is the way I like it.

It works, but it's extremely slow! Compiling takes arround 20 to 30 seconds. Way too slow...
I have tried many different things like switching of linting, not using url's inside the SCSS, changing the SCSS Output File Style: nothing helps.

I am running the latest Dreamweaver CC version 21.2 on a PC with very fast specs and on Windows 11.
Please, help me out with some tips how to solve this problem!

Matthijs
Utrecht, the Netherlands

    This topic has been closed for replies.

    1 reply

    B i r n o u
    Community Expert
    Community Expert
    January 21, 2022

    so for merging the three files you are using partials, isn't it ?

    are your partial scss file using an underscore as first character

    when you say that you don't use URL what are you taking about... properties value, or inlcude partials

    matthijsv80972039
    Participant
    January 21, 2022

    Hi Birnou,
    Thank you for responding!
    Yes, I use the underscore convention for importing partials. This is how I use it:
    My 'master' SCSS file is named styles.scss and has two imports:
    @1552174 "scss-colors-fonts";
    @1552174 "../../cms2/shared_styles/scss-defaults";

    So there is a "_scss-colors-fonts.scss" inside the same folder and there is a "_scss-defaults.scss" inside a folder that lives on a different location (hence the ../../). I have set up Dreamweaver so that it creates the compiled CSS file inside the same fodler as styles.scss.
    It all works perfectly but just.... extremely slow: Compiling takes 30 seconds, sometimes even 40 or 50 seconds.
    To check if the compilation is ready I use the SCSS output tabgroup.

    When I said I tried not using URL's I mean using url's inside the css, like "background:url(/_Images/bg-footer.jpg);". I read somewhere that for some Dreamweaver users with the same problem this solved it. But not for me...