Highlighted

why is dreamweaver minifying my css when i save to server

New Here ,
Aug 10, 2020

Copy link to clipboard

Copied

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.  

Adobe Community Professional
Correct answer by Nancy OShea | Adobe Community Professional

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

 

Views

60

Likes

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

why is dreamweaver minifying my css when i save to server

New Here ,
Aug 10, 2020

Copy link to clipboard

Copied

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.  

Adobe Community Professional
Correct answer by Nancy OShea | Adobe Community Professional

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

 

Views

61

Likes

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
Aug 10, 2020 0
Adobe Community Professional ,
Aug 10, 2020

Copy link to clipboard

Copied

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, ACP
Alt-Web Design & Publishing

Likes

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
Reply
Loading...
Aug 10, 2020 0
Adobe Community Professional ,
Aug 10, 2020

Copy link to clipboard

Copied

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, ACP
Alt-Web Design & Publishing

Likes

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
Reply
Loading...
Aug 10, 2020 0
New Here ,
Oct 26, 2020

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Oct 26, 2020 0
Adobe Community Professional ,
Oct 26, 2020

Copy link to clipboard

Copied

Are you using a CSS preprocessor?

 

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

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
Reply
Loading...
Oct 26, 2020 0
New Here ,
Oct 27, 2020

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Oct 27, 2020 0
Adobe Community Professional ,
Oct 27, 2020

Copy link to clipboard

Copied

I can't reproduce it.  Sorry.

 

Try uploading an ordinary CSS file to your server with Filezilla or Cute FTP client. 

 

 

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

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
Reply
Loading...
Oct 27, 2020 0
New Here ,
Oct 27, 2020

Copy link to clipboard

Copied

I use transmit by panic... files upload fine.  it's only when I connect to server via Dreamweaver, check out a file and then save.

Likes

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
Reply
Loading...
Oct 27, 2020 0
Adobe Community Professional ,
Oct 27, 2020

Copy link to clipboard

Copied

Just to clairify, you can upload CSS from your local site folder to remote server with Transmit and it's not minified on the server?  But when you use the DW file check-in/check-out feature, it becomes minified?

Or perhaps you are using GitHub for version control?

 

 

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

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
Reply
Loading...
Oct 27, 2020 0
New Here ,
Oct 27, 2020

Copy link to clipboard

Copied

that is correct.  pretty much any file I upload from DW file check-in/check-out gets Minified when uploading to remote server.

 

I am using GitHub for version control - but not in DW.  I use the Github desktop app to push and pull.  However this is only happening directly from DW to server.  I connect via managed site in DW - open the file once connected to remote server.  once I upload back to remote server - via saving in DW - code gets minified. 

Likes

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
Reply
Loading...
Oct 27, 2020 0
Adobe Community Professional ,
Oct 27, 2020

Copy link to clipboard

Copied

Revisiting Line Breaks for a moment.  What kind of platform do your collaborators use (Win/Mac/Unix)?

Is it the same platform as yours? 

 

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

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
Reply
Loading...
Oct 27, 2020 0
New Here ,
Oct 28, 2020

Copy link to clipboard

Copied

We're all Mac users.

 

Likes

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
Reply
Loading...
Oct 28, 2020 0
Adobe Community Professional ,
Oct 28, 2020

Copy link to clipboard

Copied

Check your servers and your collaborator's machines for any extensions that auto minify scripts.  Below are just a couple of examples.  There are many, many others available.

https://github.com/makehappen/autominifier

https://github.com/breeswish/express-minify

https://www.npmjs.com/package/node-minify

 

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

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
Reply
Loading...
Oct 28, 2020 0