CodeSleeve / asset-pipeline

This Laravel 4 package provides a very simple and easy to use asset pipeline. It was heavily inspired by the Rails asset pipeline. We make use of the wonderful Assetic package to help with pre-compliation!
http://www.codesleeve.com
MIT License
489 stars 53 forks source link

Allow for direct inclusion of less css files (.scss) #83

Closed khamkham closed 10 years ago

khamkham commented 10 years ago

Hello and thanks for this great pipeline.

I am trying to load custom css files, depending on the views that I am loading. Right now I am using this in one of my blade views:

@section('head')
{{ stylesheet_link_tag('custom/file.css') }}
@stop

To only load the file.css file in that particular view, which works great. However, when I try to do something similar with less .scss files:

@section('head')
{{ stylesheet_link_tag('custom/file.css.scss') }}
@stop

It does not work. I understand that this can be solved by using a manifest file which in turn loads/requires the .scss file, but I am trying to avoid this. Do you know if adding this functionality would be an easy fix? Thanks!

Edit: Seems that this is already possible, a combination of a path and cache environment problem made me think it wasn't :)