zf2-assetic-module
zf2-assetic-module copied to clipboard
Only assets that are referenced for the current request are build
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.
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.