linemanjs / lineman-angular-template

A Lineman Application Template using AngularJS
251 stars 88 forks source link

Task "sass" not found #19

Closed guyroutledge closed 10 years ago

guyroutledge commented 10 years ago

I'm starting a new project using this template and would like to use Sass instead of Less.

On creating a sass file and running lineman build and grepping for styles I've added, nothing is found.

When running lineman run and creating a new scss file, a fatal error is thrown:

File "app/css/global.scss" renamed. 
Fatal error: Task "sass" not found.
I notice that there is no config for sass in `config/files.js` and that there is a flag set to false for `enableSass` in the `node_modules/config/application.coffee` but I'm not sure how to approach enabling this and creating a sass task. Is there something basic that I've missed?
Foxandxss commented 10 years ago

Hello!

sass is disabled by default with that flag.

Go to config/application.js and enable it: enableSass: true.

The way it works by default is creating a app/css/main.sass (or scss) and from there @import what you need from other places of your app (AKA stuff from app/css/ and stuff from vendor/css.

That will work.

Check this issue too: https://github.com/testdouble/lineman/issues/126

guyroutledge commented 10 years ago

Awesome. Thanks for the quick response! I just wasn't sure where to enable it but that works perfectly. Cheers.