I've started using Thorax, and I have used the thorax generator with yeoman for setting up a webapp:
$ npm install -g yo generator-thorax
$ yo thorax desired-application
$ cd desired-application
$ grunt
I've selected SASS as css preprocessor, and then I can successfully run my webapp after building it with the grunt
command.
Now my problem is that I'm not sure how I can add susy to my Gruntfile.js.
The documentation states that you should add require: 'susy'
to the SASS options parameter.
But I don't have the SASS options in my Gruntfile.js, I've tried adding it in - but it doesn't work when I add @import "susy";
to my css/base.scss file.
Has anyone successfully added susy to a thorax application?
EDIT I've also tried adding susy through bower.
bower install susy --save
And I'm then able to do @import "../bower_components/susy/sass/susy";
However it would be nice to have susy added to my SASS options in gruntfile.js, and be able to do @import "susy";
instead.
Hum, If you've done your
Gruntfile
correctly, I suppose that's there is a problem with the way you installedsusy
.Have you the correct (and up-to-date 2.1.2) gem in your ruby on which you have r/w rights ? If no, try to run :
Like precised on their docs,
Susy
is build to be part ofCompass
, you should try to install it withAnd add a compass task in your
Gruntfile
, with something like this :Where
cssDir
andsassDir
are respectively destination and source folder for the compass task.Don't forget to install the plugin with :
To load it and register it
Or if you don't want compass at all :