简体   繁体   中英

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.

So .. do I just install broccoli-ruby-sass with npm? Also uninstall broccoli-sass? Or do I need a more complicated approach in my brocfile.js as outlined here ?

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

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. So I had no choice.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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