-
Notifications
You must be signed in to change notification settings - Fork 82
Sass
Markus Lachinger edited this page Dec 4, 2013
·
3 revisions
Lineman supports Sass via grunt-contrib-sass. Because the sass
task requires Ruby & the "sass" gem to be installed in order to function, it is disabled by default.
First, to enable sass, in your config/application.js
file, add enableSass: true to the config like so:
module.exports = require(process.env['LINEMAN_MAIN']).config.extend('application', {
enableSass: true
});
Once Sass is enabled, it will look for a "main.scss" or "main.sass" file in app/css
. Rather than concatenating all the source files you include in your project, Sass files will only be included as you @import
them from your main file. For more information on overriding the options in grunt-contrib-sass, please check out its README.
For installing ruby see rvm or rbenv + rbenv-build. To install "sass" gem enter the following in your shell:
gem install sass