Skip to main content
Participating Frequently
August 10, 2020
Answered

why is dreamweaver minifying my css when i save to server

  • August 10, 2020
  • 3 replies
  • 1044 views

using DW CC to connect to my server and edit code.  For some reason since recent update it minify's my CSS and PHP.  Really annoying.  

    This topic has been closed for replies.
    Correct answer Nancy OShea

    Dreamweaver doesn't minify scripts.  But many web servers do. 

     

    GZIP compression reduces file size by up to 70% and is enabled by default on most commercial web hosting plans. 

    https://gtmetrix.com/enable-gzip-compression.html

     

    3 replies

    Participating Frequently
    October 26, 2020

    My host does not have GZIP compression, and my line break is correct...  not sure why this is happening.  it continues to minify.

    Nancy OShea
    Community Expert
    Community Expert
    October 26, 2020

    Are you using a CSS preprocessor?

     

    Nancy O'Shea— Product User & Community Expert
    Participating Frequently
    October 27, 2020

    nope. default settings. I seemed to happen when CC updated this year.

    Nancy OShea
    Community Expert
    Community Expert
    August 10, 2020

    Another possibility, you have the wrong type of line break selected in Preferences > Code Format. 

    Use CR LF (Win),  CR (Mac), LF (Unix).

     

     

    Nancy O'Shea— Product User & Community Expert
    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    August 10, 2020

    Dreamweaver doesn't minify scripts.  But many web servers do. 

     

    GZIP compression reduces file size by up to 70% and is enabled by default on most commercial web hosting plans. 

    https://gtmetrix.com/enable-gzip-compression.html

     

    Nancy O'Shea— Product User & Community Expert