Skip to main content
Inspiring
March 19, 2019
Answered

Compiling SCSS files with an underscore in the file name possible?

  • March 19, 2019
  • 1 reply
  • 2175 views

Hello everyone

I'm making websites with SCSS files using 2019 version of Dreamweaver for Mac.

Compiling SCSS files had been going fine until I changed the name of a .scss file to start with an underscore (e.g. _global.scss).

Now I notice any .scss file with an underscore at the beginning of its name doesn't get compiled at all by Dreamweaver.

Given the convention of using the underscore in the name of .css files to be imported,

isn't there a way to convert such .scss files using Dreamweaver?

I don't want to resort to using a third-party app for the sake of naming .scss files with an underscore.

Some help would be appreciated.

Thank you in advance,

Ead

This topic has been closed for replies.
Correct answer BenPleysier

Normally I place an underscore for the partials without using an underscore when importing the files into the main sass document as per

1 reply

BenPleysier
Community Expert
BenPleysierCommunity ExpertCorrect answer
Community Expert
March 19, 2019

Normally I place an underscore for the partials without using an underscore when importing the files into the main sass document as per

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
EadigAuthor
Inspiring
March 19, 2019

Thank you. I now see why Dreamweaver doesn't work the way I expected it to:

The use of @import to call .scss files with an underscore without using the underscore works,

so the app doesn't have to compile them.