[英]How to disable automatic minify and compress javascripts files on Visual Studio?
I am using Visual Studio 2013, ASP.MVC Project. 我正在使用Visual Studio 2013,ASP.MVC项目。 When I add a javascript file, for example fx.js
, the file is minified and new files are created: 当我添加一个javascript文件(例如fx.js
,该文件将被缩小并创建新文件:
fx.js
(minified) fx.js
( fx.js
)
fx.js.map
fx.js.uncompressed
(original file) fx.js.uncompressed
(原始文件)
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. 因为我有一个带有很多链接脚本的JavaScript框架,并且minify格式导致变量和路径出错。
我发现的唯一解决方法是,在缩小文件之后合并原始文件,以欺骗Visual Studio正在使用缩小文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.