symfony/AsseticBundle — Issue #48: No way to “glue” assets, but avoid filters
Author: kachkaev
Created: 2011-11-22 02:29:18+00:00
State: open

At present ```assetic.debug``` config option controls both sticking assets together and use of filters defined as ```filter="?filter_name"```. So you cannot set assetic so that it will return you a single file for every group of assets, but use no compressors at the same time.

Thus, when there are too many bits your css and js are built of, developing becomes a headache. Every time you refresh the page you have to wait for dozens of controller requests to complete, or to make the compressors to run, which is also slow. Too much unwanted work in both cases.

The solution could be probably another config option that would permanently switch off any filters in a non-debugging mode, i.e.

```
#app/config/config.yml
assetic:
debug: false
use_controller: false
filters:
cssrewrite: ~
closure:
jar: %kernel.root_dir%/java/compiler.jar
yui_css:
jar: %kernel.root_dir%/java/yuicompressor.jar
```

```
#app/config/config_dev.yml
assetic:
debug: false <--- glue files,
use_controller: true
ignore_all_filters: true # <--- but ignore the filters
```

If I am not missing anything and someone else thinks the problem is worth fixing, I can implement the solution and do a pull request.