I'm more of a fan of the .sass syntax for the .sass syntax (because better, let the war begin!), So I'm trying to use it. However, when trying to compile the .sass file with Elixir, it seems to be trying to use the scss syntax to compile.
elixir(function(mix) { mix.sass('styles.sass'); });
When styles.sass is
body background: black
I get the following errors:
$ gulp [17:54:43] Using gulpfile ~/sites/skynet/gulpfile.js [17:54:43] Starting 'default'... [17:54:43] Starting 'sass'... [17:54:43] Finished 'default' after 185 ms [17:54:43] gulp-notify: [Laravel Elixir] Error: invalid top-level expression [17:54:43] Finished 'sass' after 198 ms
But by changing styles.sass (keeping the extension .sass ), to
body { background: black; }
I get a successful compilation. Is Elixir compiling scss syntax or am I missing any configuration settings? Help rate!
sass laravel laravel-elixir
Grant
source share