Meleze.web asp.net MVC 3剃须刀缩小和COM preSS HTML [英] Meleze.web asp.net mvc 3 razor minify and compress html

查看:161
本文介绍了Meleze.web asp.net MVC 3剃须刀缩小和COM preSS HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经找到的NuGet meleze.web去除生成html结果多余的空格。
但是当我设置的web.config新,并运行没有什么happend造成的。
有没有正确的样品或特殊CONFIGS?

 <结构>
  < system.web.webPages.razor>
    <主机factoryType =Meleze.Web.Razor.MinifyHtmlWebRazorHostFactory,Meleze.Web.Razor/>
 < /system.web.webPages.razor>
< /结构>


解决方案

有关上下文的一点,我们在谈论这里所描述的工具:的http://cestdumeleze.net/blog/2011/minifying-the-html-with-asp-net-mvc-and-razor/

我用下面的配置:

 <结构>
    ...
    < system.web.webPages.razor>
        <主机factoryType =Meleze.Web.Razor.MinifyHtmlWebRazorHostFactory,Meleze.Web,版本= 1.0.0.1,文化=中性公钥= 0a868b5321967eda/>
        ...

I have find meleze.web in nuget to remove extra white spaces in generated html result. but when i set web.config new , and run nothing happend to result. is there any correct sample or special configs ?

<configuration>
  <system.web.webPages.razor>
    <host factoryType="Meleze.Web.Razor.MinifyHtmlWebRazorHostFactory,Meleze.Web.Razor" />
 </system.web.webPages.razor>
</configuration>

解决方案

For a little bit of context, we're talking about the tool described here: http://cestdumeleze.net/blog/2011/minifying-the-html-with-asp-net-mvc-and-razor/

I used the following config:

<configuration>
    ...
    <system.web.webPages.razor>
        <host factoryType="Meleze.Web.Razor.MinifyHtmlWebRazorHostFactory, Meleze.Web, Version=1.0.0.1, Culture=neutral, PublicKeyToken=0a868b5321967eda" />
        ...

这篇关于Meleze.web asp.net MVC 3剃须刀缩小和COM preSS HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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