0

I am using Visual Studio 2013, ASP.MVC Project. When I add a javascript file, for example fx.js, the file is minified and new files are created:

fx.js (minified)

fx.js.map

fx.js.uncompressed (original file)

I just want to have the original file without any changes. Because I have a JavaScript Framework with a lot of linked scripts, and the minify format is causing errors with the variables and the paths.

Franchesco
  • 85
  • 6
  • AFAIK VS 2013 doesn't have any built-in minification support. Aren't you using an extension like [Bundler & Minifier](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.BundlerMinifier) or some task that is being run by the task runner? – Samir Aguiar Mar 14 '17 at 23:23
  • @SamirAguiar It has WebGrease built-in – Franchesco Mar 14 '17 at 23:38
  • Maybe [this](http://stackoverflow.com/questions/11944745/asp-net-bundles-how-to-disable-minification) helps. – Samir Aguiar Mar 14 '17 at 23:46
  • @SamirAguiar Thank you, but I already have seen that answer. The conversion occurs when I add the files to the Scripts folder. – Franchesco Mar 15 '17 at 00:42

1 Answers1

0

The only workaround that I found, it is to merge the orignal files after the the minified, to trick Visual Studio that it is working with the minified files.

Franchesco
  • 85
  • 6