Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is this not a bad idea? I am in the middle of a project and it's my understanding you can't switch mid-stream. Do I have that wrong?
I'd like to use Grunt, but Zurb is not making it mandatory… why should this module?
Thanks for your great work on all this BTW.
-gripmedia
Comments
Comment #1
kevinquillen CreditAttribution: kevinquillen commentedYou should be able to do it quite easily.
Install NodeJS and Grunt from the command line. If you have OSX, in terminal you would do:
Then, navigate to your subtheme in terminal, and type:
Grunt should then be watching and compiling any changes to CSS/SCSS that occur.
I am still working on documentation to get off the ground with the 5.x branch. Since it is alpha, there are rapid changes happening like this switch.
Comment #2
westwesterson CreditAttribution: westwesterson commentedI've made the switch before, there are some gotchas here.
If you are using some compass specific things, you can still use grunt, but will want to use it with ruby sass, and not the newer libsass (which is super fast and totally worth it on a new project).
Grunt is super configurable, and can do pretty much anything (and more) than you were doing with compass, in fact grunt can run ruby and therefore it can compile sass with the compass library for you using ruby.
Bourbon is a more modern replacement for the compass library which currently does work with libsass, but you might have to redo some of your sass to get it to work with bourbon.
TL;DR; Grunt will work for you, but you might have to spend a bit of time configuring it to work with the libraries you were already using.
Comment #3
grip media CreditAttribution: grip media commentedThanks guys… I will obviously try it on a copy. @westwesterson: yes, I figured there would be some gotchas potentially, that's always the case right?
Comment #4
chrisjlee CreditAttribution: chrisjlee commentedYeah it's not a bad idea. They're not coupled in Zurb foundation 5. Zurb foundation 5 uses grunt now.
Comment #5
kevinquillen CreditAttribution: kevinquillen commentedComment #6
grip media CreditAttribution: grip media commentedAs a follow up... I am now using Grunt and find it vastly superior to Compass in both ease of use and it's about 5x faster... So yes, this is the way to go.