• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CSS Preprocessors keep getting in my way

Engaged ,
Nov 03, 2022 Nov 03, 2022

Copy link to clipboard

Copied

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.

Views

322

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 06, 2022 Nov 06, 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

@Import '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.

 

ot

...

Votes

Translate

Translate
Community Expert ,
Nov 04, 2022 Nov 04, 2022

Copy link to clipboard

Copied

In site definition settings under CSS Preprocessors

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

Which preprocessor are you using?

 

image.png

 

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 06, 2022 Nov 06, 2022

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 06, 2022 Nov 06, 2022

Copy link to clipboard

Copied

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

@Import '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 ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 06, 2022 Nov 06, 2022

Copy link to clipboard

Copied

Thanks for the tip, renaming the partials with the underscore at the
start of each file name worked!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 06, 2022 Nov 06, 2022

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 08, 2022 Nov 08, 2022

Copy link to clipboard

Copied

LATEST
quote

youps sorry, I answered on the wrong thread/forum...

By @B i r n o u

 

you should take a nap sometimes...

 
 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 08, 2022 Nov 08, 2022

Copy link to clipboard

Copied

Sorry for beeing later on that one, I was out in location.

I wasn't sure to clearly understand your question... so that's fine if that helped you. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 06, 2022 Nov 06, 2022

Copy link to clipboard

Copied

Cool, I'm glad that it helped you.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 06, 2022 Nov 06, 2022

Copy link to clipboard

Copied

I just thought that in your case, you could directly change the json package file, in order to group your partials, and thus mutualize them between your various projects

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines