Sass 无法编译 - Web Essentials 2013 更新 4 [英] Sass failing to compile - 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 更新 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!