Skip to content

GhislainPhu/spress-gzip-static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spress Gzip Static

Spress 2 ready

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.

About

Creates a gzipped version of Spress compiled files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages