ghislainphu / spress-gzip-static
Creates a gzipped version of your Spress compiled files.
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:spress-plugin
Requires
- spress/spress-installer: 2.0.*
This package is not auto-updated.
Last update: 2025-01-30 02:58:29 UTC
README
Spress plugin to create a gzipped version of your compiled files.
This plugin is intended to be used in conjunction with NGINX's gzip_static module.
Getting Started
Run:
composer require ghislainphu/spress-gzip-static
Add these lines to your config.yml
:
# Empty by default gzip_static_extensions: [ html, css, js, xml, txt ] # Excluded files (optional) # gzip_static_exclude: [ rss.xml ] # Compression Level (optional, default: -1) # See: https://secure.php.net/manual/function.gzencode.php # gzip_static_compression_level: 6
License
This project is licensed under the MIT License.
See LICENSE.md for more informations.