Skip to main content
Participating Frequently
Aug 10, 2020 7:01 PM UTC
Answered

why is dreamweaver minifying my css when i save to server

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 is closed to new replies. Start a new post to keep the conversation going.
    Nancy OShea
    Nancy OSheaCorrect answer
    Community Expert
    Aug 10, 2020 7:39 PM UTC

    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

    12 replies

    Participating Frequently
    Oct 26, 2020 9:16 PM UTC

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

    Translate
    Nancy OShea
    Community Expert
    Community Expert
    Oct 26, 2020 9:40 PM UTC

    Are you using a CSS preprocessor?

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    Participating Frequently
    Oct 27, 2020 11:26 AM UTC

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

    Translate
    Nancy OShea
    Community Expert
    Community Expert
    Aug 10, 2020 8:40 PM UTC

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

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

     

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    Aug 10, 2020 7:39 PM UTC

    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

     

    Translate
    Nancy O'Shea— Product User & Community Expert