laravel-elixir-ruby-sass
Usage
This is a simple gulp-ruby-sass wrapper ingredient for Laravel Elixir. Add it to your Elixir-enhanced Gulpfile, like so:
var elixir = require('laravel-elixir');
require('laravel-elixir-ruby-sass');
elixir(function(mix) {
mix.rubySass('app.sass');
});
This will compile your resources/assets/sass/app.sass
file. If you'd like to output to a different directory than the default public/css
, then you may override this as well.
mix.rubySass('app.sass', 'public/css/foo/bar/');
Include Bootstrap
To include bootstrap add the following line to your app.sass
.
@import '../../../vendor/bower_components/bootstrap-sass-official/assets/stylesheets/_bootstrap.scss'
This is different from the default elixir-sass plugin which does this automatically.