简体   繁体   English

如何用西兰花红宝石代替花椰菜

[英]How to replace broccoli-sass with broccoli-ruby-sass

I've been told I need to replace use broccoli-sass with broccoli-ruby-sass, due to bug/lack of support with @extend functionality in LibSass. 有人告诉我,由于LibSass中@extend功能的错误/缺乏支持,我需要用broccoli-ruby-sass代替使用broccoli-sass。

So .. do I just install broccoli-ruby-sass with npm? 那么..我是否只在npm上安装西兰花-红宝石-ass? Also uninstall broccoli-sass? 还卸载西兰花-ass吗? Or do I need a more complicated approach in my brocfile.js as outlined here ? 或者我需要为概括我brocfile.js一个更复杂的方法在这里

Any help appreciated. 任何帮助表示赞赏。 I'm pretty much a noob here and need all the help I can get. 我在这里几乎是个菜鸟,需要我能得到的所有帮助。

Thanks! 谢谢!

I got a chance to try a few things. 我有机会尝试一些东西。 The following seemed to work: 以下似乎有效:

  1. $ npm install broccoli-ruby-sass --save-dev
  2. Remove dependency for broccoli-sass from package.json 从package.json中删除对西兰花-ass的依赖

So pretty easy. 非常简单。 I should have had a bit more courage. 我应该有更多的勇气。

Note to readers who may wish to do the same: LibSass is noticeably faster than Ruby Sass, but I understand it is newer, still lacks some features, and in my case had apparent bugs. 请注意可能希望这样做的读者:LibSass的速度明显比Ruby Sass快,但是我知道它是更新的,仍然缺少某些功能,并且在我看来有明显的错误。 So I had no choice. 所以我别无选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM