Sass无法编译-Web Essentials 2013 Update 4 [英] Sass failing to compile - Web Essentials 2013 Update 4

查看:69
本文介绍了Sass无法编译-Web Essentials 2013 Update 4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前正在使用Web Essentials 2013更新4提供对在Visual Studio中编译.scss文件的支持.

I'm currently using Web Essentials 2013 update 4 to provide support for compiling .scss files in Visual Studio.

该工具在过去对我来说运行良好,但是我刚刚创建了一个新的.scss文件,并将引导程序最小化的CSS复制到了该新文件中.

The tool has worked fine for me in the past however I have just created a new .scss file and have copied the bootstrap un-minified css into this new file.

保存后,屏幕右侧的编译窗口无法更新或显示已编译的CSS或任何错误消息.同时,Visual Studio屏幕底部的蓝色条卡在

Upon saving, the compilation window on the right hand side of the screen fails to update or display the compiled css or any error messages. Meanwhile, the blue bar at the bottom of my Visual Studio screen is stuck on

为bootstrap.scss编译0个依赖文件

Compiling 0 dependent file for bootstrap.scss

通常,我希望由此生成一个bootstrap.css文件以及bootstrap.min.css文件,但这没有发生.

Usually I would expect a bootstrap.css file to be generated from this as well as a bootstrap.min.css file but this is not happening.

有人知道如何将其恢复到正常工作状态吗?

Does anyone have any ideas how I can restore this back to normal working conditions?

推荐答案

这与WebEssentials-Settings.json文件中的设置有关.在版本3中,需要将"UseRubyRuntime"参数标记为true,以使其能够自动编译为相关文件.从版本4开始,可以将其标记为false,因为WE现在具有内置的编译器,我认为它可能与我尝试使用的RubyRuntime版本冲突.

This was to do with the settings I had in my WebEssentials-Settings.json file. In version 3, the 'UseRubyRuntime' parameter needed to be marked as true to allow it to auto compile into the relevant files. Since version 4 this can be marked as false as WE now has a built in compiler which I believe may have been conflicting with the RubyRuntime version I was trying to use.

这篇关于Sass无法编译-Web Essentials 2013 Update 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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