Answered by:
Minified files are not getting published via VS Web Deploy

Question
-
I have created minifcation for my project using Web Essentials. So it is working fine when i run it as localhost. I am doing deployment using web deployment and these minfied files are not getting pushed to the destination server and i am getting 404 error for minified files.
http://www.selvaonline.com - Live a Happy & Balanced Life
Tuesday, September 8, 2015 7:31 PM
Answers
-
Have you tried looking at the deployment list? http://stackoverflow.com/questions/5789647/visual-studio-2010-web-publish-missing-a-file Are the files there? Looks like some folks did a remove and forced replacement to get the missing files to upload.
- Proposed as answer by IoTGirlMicrosoft employee Wednesday, September 9, 2015 5:19 PM
- Unproposed as answer by SelvaOnline Wednesday, September 9, 2015 6:11 PM
- Marked as answer by SelvaOnline Wednesday, September 9, 2015 6:11 PM
- Unmarked as answer by SelvaOnline Wednesday, September 9, 2015 6:11 PM
- Proposed as answer by Kristin Xie Tuesday, September 29, 2015 1:38 AM
- Marked as answer by CaillenModerator Tuesday, September 29, 2015 1:43 AM
Tuesday, September 8, 2015 11:05 PM
All replies
-
Looks like this person hit a similar issue. Would the same solution work for you?
https://wordpress.org/support/topic/all-pages-except-home-give-404-error-when-minify-on
Tuesday, September 8, 2015 7:55 PM -
Not exactly. In my case, min files are not at all shipped to my production server by web deployment. But it is there in my localhost and working fine if run the application in the release mode. In my code, i have written logic like use raw js file during debug mode and use min.js during release mode.
http://www.selvaonline.com - Live a Happy & Balanced Life
Tuesday, September 8, 2015 9:00 PM -
Does your web deployment tool know which files to upload? Can you force the correct files to be deployed through your tool?Tuesday, September 8, 2015 9:36 PM
-
I am using Visual Studio ->Publish -> Web Deployment option. This is not including my min files.
http://www.selvaonline.com - Live a Happy & Balanced Life
Tuesday, September 8, 2015 9:56 PM -
Have you tried looking at the deployment list? http://stackoverflow.com/questions/5789647/visual-studio-2010-web-publish-missing-a-file Are the files there? Looks like some folks did a remove and forced replacement to get the missing files to upload.
- Proposed as answer by IoTGirlMicrosoft employee Wednesday, September 9, 2015 5:19 PM
- Unproposed as answer by SelvaOnline Wednesday, September 9, 2015 6:11 PM
- Marked as answer by SelvaOnline Wednesday, September 9, 2015 6:11 PM
- Unmarked as answer by SelvaOnline Wednesday, September 9, 2015 6:11 PM
- Proposed as answer by Kristin Xie Tuesday, September 29, 2015 1:38 AM
- Marked as answer by CaillenModerator Tuesday, September 29, 2015 1:43 AM
Tuesday, September 8, 2015 11:05 PM -
Excluding the js file and including them with the js/min/map file works fine i.e it is help to publish the min file to the destination server. This setup i have to do for all instance of developer machine :( Don't we have any workaround?
http://www.selvaonline.com - Live a Happy & Balanced Life
Wednesday, September 9, 2015 5:17 AM -
So forcing the files works? If so, I think that means you do have a work around.
Sincerely, IoTGirl
Wednesday, September 9, 2015 5:20 PM -
It works. But i have a new problem which force me to quit Webessential and use grunt/uglify for my minification.
I have VS2013 ultimate and when i edit the raw js file and save them then the corresponding min.js not getting updated.So everytime we need to delete the existing min.js and recreate them using Web Essentials. But this issue not happening when we are using with VS2013 Premium. The issue specific to VS2013 Ultimate.
http://www.selvaonline.com - Live a Happy & Balanced Life
Wednesday, September 9, 2015 6:34 PM -
It still sound like a configuration issue to me and not a bug. Have you taken the project that works with Premium and copied it exactly to use with Ultimate? Do you have a comparison tool that can compare the projects and see how they differ? (Like Windiff?)
If you really do think this is a VS bug, you are probably posting this in the wrong forum. You should probably repost in the VS forums with better details. I would start with the forum "Visual Studio General Questions" and make sure you have a simple repro for them to validate.
1. Provide the details of your setup - PC, OS & VS version
2. Provide all steps for VS folks to reproduce your issue - How did you create your project? What steps did you take to make it "Mini"?
3. Results - Expected vs Actual
In all of the points above, please give as much detail as you can so that someone can understand and try to see the same problem that you do.
Wednesday, September 9, 2015 6:47 PM