...
Asset building process differs radically for website visitors and developers:
For Regular Visitors | For Developers | |
---|---|---|
1 | only, when combined asset is missing | when any of assets is changed |
2 | combine all specified assets into single file | |
3 | compress result using "CSS/JS Compression Engine" setting | |
4 | store result in "/system/cache" path | |
5 | return URL to asset like "/system/cache/asset_name?ts=timestamp" |
There are several issues, that can happen:
...
- use https://github.com/kriswallsmith/assetic library for asset file creation (internals of "m_Compress" tag)
- use JsMin and CssMin from Composer
- deprecate "JsMinifyHelper" and "CssMinifyHelper" classes in favor of "MinifyHelper::compressString" method
- store compiled assets in "/system/cache/assets/" folder instead of "/system/cache/" folder