symfony - Prevent assetic from sending css files to compass -


i'm working on symfony 2.8 project. assetic used combine css 1 file. have written own css scss use compass compile it.

i added 3. party lightbox plugin , can't assetic put scss , plain css of lightbox together.

assetic config:

assetic:     debug:          "%kernel.debug%"     use_controller: false     bundles:        [ ]     filters:         cssrewrite: ~         compass:             bin: /usr/local/bin/compass             apply_to: '\.scss$' 

html-head:

{% stylesheets         'css/screen.scss'         'assets/vendor/lightgallery/dist/css/lightgallery.css'         filter='cssrewrite,compass' output='css/compiled/app.css' %}         <link rel="stylesheet" href="{{ asset_url }}" />     {% endstylesheets %} 

with error like:

    /*     [exception] 500 | internal server error | assetic\exception\filterexception     [message] error occurred while running:     '/usr/local/bin/ruby' '/usr/local/bin/compass' 'compile' '/applications/xampp/xamppfiles/htdocs/xyz/app/cache/dev' '--boring' '--images-dir' '/applications/xampp/xamppfiles/htdocs/xyz/app/../web/images' '--config' '/applications/xampp/xamppfiles/htdocs/xyz/app/cache/dev/assetic_compass05ld1v' '--sass-dir' '' '--css-dir' '' '/applications/xampp/xamppfiles/htdocs/xyz/app/cache/dev/assetic_compassrm5h7y.css'      error output:     warning on line 2 of /applications/xampp/xamppfiles/htdocs/xyz/app/cache/dev/assetic_compassrm5h7y.css:     selector doesn't have properties , not rendered.     warning on line 3 of /applications/xampp/xamppfiles/htdocs/xyz/app/cache/dev/assetic_compassrm5h7y.css:     selector doesn't have properties , not rendered.       output:     error /applications/xampp/xamppfiles/htdocs/xyz/app/cache/dev/assetic_compassrm5h7y.css (line 5: invalid css after "'lg'": expected expression (e.g. 1px, bold), ";")     compilation failed in 1 files.       input:     /*! lightgallery - v1.2.21 - 2016-06-28     * http://sachinchoolur.github.io/lightgallery/     * copyright (c) 2016 sachin n; licensed apache 2.0 */     @font-face {     font-family: 'lg';     src: url("../fonts/lg.eot?n1z373");     src: url("../fonts/lg.eot?#iefixn1z373") format("embedded-opentype"), url("../fonts/lg.woff?n1z373") format("woff"), url("../fonts/lg.ttf?n1z373") format("truetype"), url("../fonts/lg.svg?n1z373#lg") format("svg");     font-weight: normal;     font-style: normal;     }     [...] 

if rename css file scss works. don't know why compass has problem processing file when send css assetic.

besindes behaviour assetic shouldn't send css file compass anyway. did wrong?


Comments