Thanks PZ, but I don't think so. Here's why: I have been using DW CS3 and CS5 on my WordPress sites for years with no problem. The controlling file is style.css. There is on min in the file name. I got completely screwed up with this last week and today I ran a test going to one of my "sandbox" sites using DW CS6. With WP you can see the files in the Dashboard editor. I checked my style.css file and it was Formated. I uploaded it with DW CS6 and looked. Now it was Minified.
The reason this is a problem (during development) is that when using FireBug, it tells you what line the CSS selector is on. Like #footer..... line 1234, which is great for developing. But when it is minified, everything is on line 1.
And if another designer needs to work on the file and downloads it, he has to de-minify it.
Or am I missing something.
I checked my style.css file and it was Formated. I uploaded it with DW CS6 and looked. Now it was Minified.
This is definitely not caused by DW.
Either you have a plug-in installed in WP for minification or this is happening enroute to your webserver. DW has nothing to do with this.
Can you try this:
- Login to your File Manager on your webserver
- Create a new file - name it test.css or something
- Copy & paste the non-minified version of the CSS from DW to that file
- Save it directly from the server
- View the file from there
See if it is minified.
Also, is it possible for you to give us a few links to one of the CSS files you're saying is 'minified' on your server? And the same CSS non-minified, from DW?
Dw does not have a minification option, so this is definitely not being caused by Dw or any of the Dw settings.
thanks for the suggestions Sudarshan.
Using the WordPress dashboard editor is the same as doing your first suggestion.
Here are the links:
For "sandbox" site http://www.kennethbsmith.com/clients/webdev/portfolio, here is the link to a theme style sheet I downloaded using DW CS6 and then uploaded: http://www.kennethbsmith.com/clients/webdev/portfolio/wp-content/themes/twentyten/style.cs s It is minified.
Here is a diffent theme style sheet I downloaded, then uploaded using DWCS3: http://www.kennethbsmith.com/clients/webdev/portfolio/wp-content/themes/twentyeleven/style .css It is not minified.
There is no plugin installed that would do this. Besides it would affect both themes if it was.
pziecina- This is baffling. From everyone's comments and from my searches, everything suggests that it is not DreamWeaver. But the only variable that I can find is that DW6 minifies my style.css files and DW3 does not. I am not using SASS or LESS. And this has happened on two seperate servers. One site is hosted on BlueHost and the othere is on HostGator. Bummer.
Here is the twentyten css file uploaded via ftp to the images folder: http://www.kennethbsmith.com/clients/webdev/portfolio/wp-content/themes/twentyten/images/s tyle.css Note that it is not minified.
Here is the twentyten css file uploaded via DW CS6 to its normal place: http://www.kennethbsmith.com/clients/webdev/portfolio/wp-content/themes/twentyten/style.cs s It is minified. Weird. This is why I think it is DW CS6. Not an issue when edited with DW CS 3 or 5.
No Super Cache or other plugins on this site. Nore LESS or SASS.
Thanks for looking at this.
I got excited when I saw this:
(hmmmm for some reason I cannot attach the screengrab using Safari, even though it is a 450px by 400px gif. I can Choose it, but not Insert it. I'll upload it to the www. --that worked, see below)
I thought Use FTP performance optimization might be the culprit. It is not an option on DWCS3 which I have be using. But alas, turning off that Option did not solve the problem.
I am thinking I could use iShowU and make a screencast of how I am testing this.
1. formated file in DWCS3 uploaded = formated file on server.
2. formated file in DWCS6 is uploaded = minified file on server.
But I have a busy day and will have to do this later in the week.
Thanks again for your suggestions and comments.
I first discovered this on a clients website that is hosted on anotherhost/server. I cross-checked it with a different client on a different host/server. That's three different hosts. (in trying to work with the mified style.css on client03, I completely screwed up the site and had to ask the host to reset the site to the previous day;s backup. Major bummer.)
The DW CS6 is part of the CS6 package I signed up for in late November. All the Adobe software. I believe it is the Creative Cloud.
I have not had the time to do a screencast but I found another example of what is happening when I upload using DWCS6.
I do want to use DWCS6. So I used it to make a gallery from a tutorial on line. It is just an html page with JS embedded.
I made it and it was working fine locally, but not when I uploaded it. This was very confusing. So I looked at View Source and Whoa!!! The Source Formatting was gone. That is want I am referring to as Minify.
Compare: http://kennethbsmith.com/bonus/dhtml/imggridDWCS6.html . It was built and uploaded with DWCS6.
http://kennethbsmith.com/bonus/dhtml/imggrid.html This is the same file built with DWCS6 but uploaded via FTP.
You can see the first does not work. Look at the View Source.
This is so Wack, I don't know what to think.
Good idea. I do. I did. Compare here at a completely different ISP:
Note that Source formating is gone from DWCS6, even though here th JS runs.
I have DWCS3 which I have been using because it does not strip the source formating, but I want the CSS3 and HTML featureso of CS6.
Also, I did this after updating my DWCS6 to 121 build 5966
- Line Break Type
- Specifies the type of remote server (Windows, Macintosh, or UNIX) that hosts your remote site. Choosing the correct type of line break characters ensures that your HTML source code appears correctly when viewed on the remote server. This setting is also useful when you are working with an external text editor that recognizes only certain kinds of line breaks. For example, use CR LF (Windows) if Notepad is your external editor, and use CR (Macintosh) if SimpleText is your external editor.
Note: For servers that you connect to using FTP, this option applies only to binary transfer mode; the ASCII transfer mode in Dreamweaver ignores this option. If you download files using ASCII mode, Dreamweaver sets line breaks based on the operating system of your computer; if you upload files using ASCII mode, the line breaks are all set to CR LF.
Try changing your Line Break Type to LF Unix - if your webserver is running Apache. See if that helps.
Now I am very confused.
I changed the DWCS6 prefs to Line Break Type > LF (Unix). Then, following a similar method to my last post, I put up the files to three different ISPs.
The code is still wack on these two:
But seems to be fine here:
http://jamiemalanowski.com/kbs/imggridDWCS6.html (ixwebhosing.com is a Linux Server)
All 3 websites that you've linked above are running Apache. Weird.
It comes down to 2 things now:
- Site Definition (FTP Definition)
Try clearing your DW cache - http://forums.adobe.com/thread/494811
Post a screenshot of your FTP Server definition from your 'Site definition' window. Mask your username/ password
ST, Nancy O-
Keeping the Code Format Line Break type as LF(Unix), I cleared the cache and I think that may have solved the issue.
I made new files, uploaded them and they have the proper Source Formating.
both were created in DWCS6 and uploaded from the panel.
Here is hoping the situation is solved. I will go back to work and test in within my workflow.
Thank you very much.