In Symfony2 globally disable arbitrary CSS filter Assetic'huh?

Good evening,

there are third-party plug-in bundle via composer. This bundle for CSS uses ascetic the yui_css filter. A question mark before the filter and it is used only in production.

What if I don't want to use it? In my case it simply is not necessary, because using the other filters.

It is certainly possible to climb in the source code bundle and just remove the filter from {% stylesheets %}, but I would like to find a more reasonable solution, for example to force Symfony to ignore this filter.

I tried to specify an incorrect path to jar file - everything falls into error.

Maybe there's some "correct" way to disable this filter without digging in the source code?

October 3rd 19 at 01:47
2 answers
October 3rd 19 at 01:49
I would advise to write in the Symphony band in Google.
The most simple now - skopipastit template
and fix it the way you want it, when you compile, the Symphony itself will tighten your pattern.
Hmm...option. Thank you. - Ahmad38 commented on October 3rd 19 at 01:52
October 3rd 19 at 01:51
You can try to make a class stub with interface similar to CssCompressorFilter, and slip it in the service assetic.filter.yui_css parameter assetic.filter.yui_css.class.
Let them return the same as received at the input.
Documentation on the subject.
Interesting, will have to try. Thank you - Ahmad38 commented on October 3rd 19 at 01:54

Find more questions by tags PHP