title: Visual Studio 2013 - publish minified javascript only
body: <p><strong>Environment:</strong> </p>
  
  <p>Microsoft Visual Studio Professional 2013
  Version 12.0.31101.00 Update 4
  Microsoft .NET Framework
  Version 4.5.51209</p>
  
  <p>I have a website project that contains some javascript files.  Visual Studio minifies javascript files automatically -- for example, if the "source" file is called "myscript.js" -- Visual Studio will also create a minified version called: "myscript.min.js" -- which is great...</p>
  
  <p>When I right-click on the file name in Solution Explorer and select "Publish myscript.js" - Visual studio publishes three files:</p>
  
  <ul>
  <li>myscript.js</li>
  <li>myscript.min.js</li>
  <li>myscript.min.js.map</li>
  </ul>
  
  <p>However, I want to publish ONLY the minified version of the file to the web site -- problem is, if I use the "Exclude From Project" setting (right-click on "myscript.js" -> Exclude From Project"); Visual studio will also exclude the minified version of the source file.</p>
  
  <p>Is there a setting in Visual Studio that allows us to specify that only the minimized version of the file be published when selecting the "Publish" option within Solution Explorer???</p>
  
  <p><strong>PLEASE NOTE:</strong> I am NOT asking for an MSBuild or MSDeploy solution (this is NOT a web APPLICATION; it is a website project) -- I want to be able to publish a single file at a time (in this case javascript) but I do NOT want the main source file published -- only the minified version.</p>
  
  <p>The only solution I have found is to manually publish the minified version, and then manually delete the "source" file from the web site; but it would be nice if Visual Studio had a setting that would prevent the javascript "source" file from being uploaded to the server.</p>
  
  <p>Perhaps no such option exists?  (Guess I am just looking for confirmation).</p>
  
  <p>Thanks.</p>