SquishIt与MVC 4.0捆扎机 [英] SquishIt vs. MVC 4.0 Bundler

查看:230
本文介绍了SquishIt与MVC 4.0捆扎机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.NET MVC应用程序,我presently使用SquishIt帮助捆绑所有的CSS和JavaScript文件到从Web服务器下载的每一击到我的网站的单个元素。我知道最近 MVC推出了自己的打捆。任何人做他们两个人之间的一些比较?是一家为某些情况下与其他的更好吗?或者,他们基本上是相同的?随着MVC打捆,并IIS仍需要写访问该网站的目录?

I have a an ASP.NET MVC application and I presently use SquishIt to help bundle all of my CSS and javascript files into a single element downloaded from the webserver for every hit to my site. I know that recently MVC introduced its own bundler. Has anyone done some comparing between the two of them? Is one better for certain situations vs. the other? Or are they basically the same? With the MVC bundler, does IIS still need write access to the site directory?

任何和所有的想法和意见,你可能会AP preciated。

Any and all thoughts and comments you may have would be appreciated.

感谢。

推荐答案

我还没有研究的细节和扩展点等多达@AlexCuse但他一般取似乎是我的。

I haven't looked into the details and extensibility points etc as much as @AlexCuse but his general take seems to be mine.

Squishit似乎有优势。

有关我(和的我想我一定会以某种方式的缺少明显的 - 但我没有时间/倾向写我自己的自定义IBundleOrderer实施,并不能找到我期望在解决方案文档/谷歌搜索)

For me (and I think I MUST be missing the obvious somehow - but I don't have time / inclination to write my own custom IBundleOrderer implementation and can't find the solution I expect in docs / googling)

的MVC / MS提供了一台庞大的FAIL ...

我不能看我怎么才能得到它简单地尊敬我宣布脚本和CSS文件的命令!

这完全吸收,原因很明显球。 (即其完全搞砸了我的应用程序 - 用20+的小CSS / JScript的错误都在我的大而复杂的应用程序 - 这些令人沮丧很难牵制的小虫子显示,奇JS怪癖)

Which totally sucks balls for obvious reasons. (i.e. its utterly screwed up my app - with 20+ little css / jscript bugs all over my large complex app - those frustratingly hard to pin down little display bugs and odd js quirks)

里克·安德森说的添加自定义IBundleOrderer实现,但明确地将每个文件是不容易出错。但我看不出怎么办后者 - 我明确使用.INCLUDE(每个文件的主要我的订单很荣幸,但恼人没有完全 - 显然有些默认的规则发挥作用的和系统决定它知道的比我好

Rick Anderson say's "adding a custom IBundleOrderer implementation, but explicitly adding each file is less error prone." But I can't see how to do the latter - I am explicitly using .Include( for each file. Mainly my order is honoured, but annoyingly not totally - clearly some default rule comes into play and the system decides it knows better than me.

诚然有必须的是这里一个简单的答案 - 但我不能找到它所以对我来说这是一个巨大的块状FAIL和手段的我现在要恢复的麻烦回从MS实施Squishit 的其中非常漂亮,做的工作谢谢!

Admittedly there must be a simple answer here - but I can't find it so for me this is a MASSIVE MASSIVE FAIL, and means I am now going to the trouble of reverting back from MS implementation to Squishit which did the job very nicely thank you !

N.B。还与问题
1.它涅槃的JS ...它引入的错误我只是不需要的方式。我没有做到公平与Squishit一些问题,但还算容易解决。
2.其污染减量的CSS的方式

N.B. also had problems with 1. the way its Minifying the js... its introduced bugs I just don't need. I did to be fair have some issues with Squishit but solved fairly easily. 2. the way its minifying the css

Minification failed. Returning unminified contents.

我恢复到Squishit。

I'm reverting to Squishit.

这篇关于SquishIt与MVC 4.0捆扎机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆