kriswallsmith / assetic

Asset Management for PHP
MIT License
3.75k stars 555 forks source link

Copy images in CssRewriteFilter #486

Open renanbr opened 11 years ago

renanbr commented 11 years ago

I've tried to move a sort of .css files from private directory to another one bellow webserver's document root. CssRewriteFilter works! A file is created, but dumped file keeps references to non-accessible images (out of web directory).

It could be nice if referenced images in CSSs files could be copied too.

See a sample about how I would like it works:

/path/to/site/
    file/
        some-nice-image.jpg
    images/
        logo.png
        another-dir/
            file0.css
            another-image.png   
    file1.css
    file2.css
    public/
        index.php
/path/to/site/
    ... keep files in non-public dir ...
    public/
        index.php
        final.css
        final-images/
            image0.jpg
            image1.png
            image2.png
alex88 commented 11 years ago

That would be awesome!