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
491 stars 53 forks source link

Using Less.js (need more info) #159

Closed vincentcordel closed 10 years ago

vincentcordel commented 10 years ago

Hi there,

I read the following issue: https://github.com/CodeSleeve/asset-pipeline/issues/124

You mentioned to write a wrapper.

So I created the following filter: <?php namespace Codesleeve\AssetPipeline\Filters;

use Assetic\Asset\AssetInterface;
use Assetic\Filter\FilterInterface;

class LessjsFilter extends \Assetic\Filter\LessjsFilter
{

}

And in the config file, I changed the less filter to:

'.less' => array(
new Codesleeve\AssetPipeline\Filters\LessjsFilter,
new Codesleeve\AssetPipeline\Filters\URLRewrite(App::make('url')->to('/')),
new EnvironmentFilter(new Codesleeve\AssetPipeline\Filters\CssMinFilter, App::environment()),
),

However this doesn't work yet. I can't create a file in the vendor folder so the path is obviously incorrect.

My question:

Thanks again and sorry for the easy question :)