简体   繁体   English

如何在Visual Studio中禁用自动缩小和压缩javascripts文件?

[英]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.jsfx.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.

相关问题 缩小Visual Studio嵌套文件夹结构中的所有JS文件 - Minify all JS files in nested folder structure of Visual Studio 使用Ajax Minfy缩小和压缩文件 - using Ajax Minfy To minify and compress files 使用Webpack将多个javascript文件压缩和压缩为一个? - Compress and Minify multiples javascript files into one, with Webpack? Ruby on Rails:缩小或压缩Javascript文件? - Ruby on Rails: Minify or Compress Javascript Files? 使用cmake打包成zip之前,请最小化CSS和Javascripts文件 - Minify CSS and Javascripts files before packing into zip using cmake 如何在 Visual Studio Code 中使用 TypeScript 和 JavaScript 禁用自动导入的自动分号? - How to disable automatic semicolon for auto imports with TypeScript and JavaScript in Visual Studio Code? 如何在不崩溃控制台的情况下同时或按顺序缩小/压缩数千个JS文件(包括一些大文件)? - How to minify/compress thousands of JS files - including some large ones - at the same time or sequentially without crashing the console? 如何压缩/缩小嵌入了php的javascript - how to compress / minify javascript that has embedded php YUI压缩器将所有javascripts文件压缩为“ min.js” - YUI compressor compress all javascripts files into 'min.js' 如何缩小jquery文件? - How to minify jquery files?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM