Web Essentials的RTLCSS工具不工作 [英] Web Essentials' RTLCSS tool does not work

查看:204
本文介绍了Web Essentials的RTLCSS工具不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2013中使用Web Essentials扩展。

I am using Web Essentials extension with Visual Studio 2013.

我想使用Web Essentials的 CSS RTL工具。但是当我在我的CSS文件上运行这个工具没有什么发生。

I want to use Web Essentials' CSS RTL tool. But when I run that tool on my CSS files nothing happens.

Web Essentials不生成任何RTL文件。我发现一个css文件有css.map文件,Web Essentials也可以生成RTL文件。

Web Essentials don't generate any RTL file. I've discovered when a css file have css.map file, Web Essentials could generate RTL file also.

如何为每个CSS文件生成RTL文件? p>

How can I generate RTL files for every CSS files?

推荐答案

这个问题与最新的web essentials包(v2.5)有关,它有一个更新的postcss版本,默认启用inline源映射。

The issue is related to the latest web essentials package (v2.5) having an updated postcss version that enables inline source maps by default.

如果您无法编译此分支并使用生成的包执行以下操作:

If you can't compile this branch and use the generated package, do the following:


  1. 关闭Visual Studio。

  1. Close Visual Studio.

前往 C:\Users \ {username} \AppData\Local\Microsoft\VisualStudio\12.0\Extensions\ {webessentials} \ Resources \\\
odejs\tools\server\services

其中 {username} 是您的用户名和

打开 srv-rtlcss。 js 搜索 map = result.map.toJSON(); ,并将其替换为:

Open srv-rtlcss.js search for map = result.map.toJSON(); and replace it with:

if (typeof result.map !== 'undefined'){
  map = result.map.toJSON();
}


  • 保存文件,打开Visual Studio并运行RTLCSS。 p>


  • 如果您需要进一步协助,请与我们联络!

    Let me know if you need further assistance!

    这篇关于Web Essentials的RTLCSS工具不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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