zf2-assetic-module icon indicating copy to clipboard operation
zf2-assetic-module copied to clipboard

Only assets that are referenced for the current request are build

Open roelvanduijnhoven opened this issue 11 years ago • 1 comments

In the new version of this repository only assets are build during a request that are actually referenced in the assetic configuration.

This leads to problems in our application. We have a few files that need to be copied to the assets directory but are never mentioned in the assetic configuration for a request. For example our @bootstrap_js collection.

How can we make sure that ALL assets are (possibly, if not already present) build and copied in an request?

Thanks.

roelvanduijnhoven avatar Jul 11 '13 11:07 roelvanduijnhoven

Hi,

I thinks that on production environment this would help:

index.php assetic build

You could also try to use flag combine => true to combine all assets as one.

widmogrod avatar Jul 26 '13 14:07 widmogrod