Closed iuscare closed 3 years ago
Does this preset minify and compress, or both. For example, Drupal needs only minified files and the Apache does the compression.
Hey @christianwiedemann, when running yarn build:drupal
the files are already minified without the preset. This preset only adds a layer on top of that and creates compressed files out of them. While it is true, that modern web servers have the possibility to compress the files on demand, I thought that compressing static files on each demand could be somewhat like an anti-pattern. It may be worth to outsource this work to the build process. This also gives better valuation about the real file size used in production and is portable. That was the motivation behind the preset. If we want to stick with pure webserver compression and minification during the build process is enough, we won't need the preset :wink:
Yes perfekct, we need both compressed and minified
This preset adds compression for css, js and html files. Following props are exposed to be used in the wingsuit.config.yml
Example configuration:
The optimized files are only generated when running the build process of drupal.