ScriptBundle adding both full and minified file in debug mode

删除回忆录丶 提交于 2019-12-06 02:22:07

MVC4 only knows how to handle a .min.js file. It doesn't recognize -min.js (with a dash).

The way I typically do this, with easy success, is to get rid of any .min.js or -min.js files provided by libraries that provide both a .js and either a .min.js or -min.js. By default, MVC will automatically minify any bundled .js files when you deploy your website, so there's no need to use the provided .min.js or -min.js files.

This isn't necessarily a direct answer to your particular question - it's a way to circumvent the problem entirely.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!