You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Asset-Mapper has made a clear choice to not minify assets and move this responsibility to the webserver. Mainly referring to CloudFlare who can do this automatically.
In Cloudflare, assets are compressed by default and you can also enable auto minify to further compress your assets (e.g. removing whitespace and comments from JavaScript and CSS files).
Going to those Cloudflare docs, it seems the auto-minify feature is deprecated:
Deprecation notice
Auto Minify is deprecated and will be removed on 2024-08-05. After this date, Auto Minify will no longer be available via the Cloudflare dashboard, API, or Terraform.
We recommend that you minify at the origin during the build phase. Minification is included in most modern web development frameworks.
Considering Cloudflare will no longer support it, ánd advises to do this at build-time, it might be worth reconsidering this and perhaps add minification to AssetMapper after all?
Example
This could simply be toggled in config, though it would probably be best to have this behaviour by default.
The text was updated successfully, but these errors were encountered:
ChristianVermeulen
changed the title
[Asset-Mapper] Add minification since deprecated by cloudflare
[AssetMapper] Add minification since deprecated by cloudflare
May 17, 2024
Description
Asset-Mapper has made a clear choice to not minify assets and move this responsibility to the webserver. Mainly referring to CloudFlare who can do this automatically.
Documentation: Does the AssetMapper Component Minify Assets?
Which refers to Optimization.
Which states the following:
Going to those Cloudflare docs, it seems the auto-minify feature is deprecated:
Considering Cloudflare will no longer support it, ánd advises to do this at build-time, it might be worth reconsidering this and perhaps add minification to AssetMapper after all?
Example
This could simply be toggled in config, though it would probably be best to have this behaviour by default.
The text was updated successfully, but these errors were encountered: