Skip to main content
Inspiring
November 4, 2022
Answered

CSS Preprocessors keep getting in my way

  • November 4, 2022
  • 2 replies
  • 699 views

Hello everyone

 

This age-old problem is still huanting me, so I would like a solution, please. To illustrate it, Dreamweaver, even in its version 21.3, compiles every SASS file whether I turn on Enable Auto Compilation On File Save or not. Changing the CSS Output options has never solved this, and the app just constantly compiles all of the SASS files nagging me to hell.

 

Thanks for reading.

    This topic has been closed for replies.
    Correct answer L e n a

    I'm not sure I understand your question, or problem?

     

    Is your problem that DW compiles all SASS files, even if they are partials that you import into other files.

    if this is the case, do your partials file names use an undescore as first character

    @1552174 'variables';

    and the file is named

    _variables.scss

    that way the _variables.scss wont be compiled as _variables.css, but will be compiled on the fly, and the result will imported directly in the hosting file, without creating the CSS file.

     

    otherwise except for partials, compiling files from scss/sass to css , is one of the purposes of this feature, so all SCSS/SASS must be compiled.

     

    If that is not, your trouble, I confess I don't understand your problem, could you please, rephrase it ?

    2 replies

    L e n aCorrect answer
    Community Expert
    November 6, 2022

    I'm not sure I understand your question, or problem?

     

    Is your problem that DW compiles all SASS files, even if they are partials that you import into other files.

    if this is the case, do your partials file names use an undescore as first character

    @1552174 'variables';

    and the file is named

    _variables.scss

    that way the _variables.scss wont be compiled as _variables.css, but will be compiled on the fly, and the result will imported directly in the hosting file, without creating the CSS file.

     

    otherwise except for partials, compiling files from scss/sass to css , is one of the purposes of this feature, so all SCSS/SASS must be compiled.

     

    If that is not, your trouble, I confess I don't understand your problem, could you please, rephrase it ?

    EadigAuthor
    Inspiring
    November 6, 2022
    Thanks for the tip, renaming the partials with the underscore at the
    start of each file name worked!
    B i r n o u
    Community Expert
    November 6, 2022

    youps sorry, I answered on the wrong thread/forum... both questions were about the compilation of partials... and I had the wrong recipient... sorry for the noise

    Nancy OShea
    Community Expert
    November 4, 2022

    In site definition settings under CSS Preprocessors

    Are you sure the Enable Auto Compilation... box is empty?

    Which preprocessor are you using?

     

     

    Under Servers tab > Advanced >

    Is the Automatically Upload Files to Server on Save box empty?

     

    Have you tried Restoring DW Preferences?

    https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver.html

     

    Nancy O'Shea— Product User, Community Expert & Moderator
    EadigAuthor
    Inspiring
    November 6, 2022

    Thanks for the suggestions. I looked through the settings including the two options that you mentioned and confirmed they had been unticked. I didn't get to reset the preferences because what Lena suggested worked.