ghislainphu/spress-gzip-static

创建您Spress编译文件的gzip版本。

安装: 31

依赖: 0

建议: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:spress-plugin

0.1.1 2016-05-21 13:14 UTC

This package is not auto-updated.

Last update: 2024-09-26 01:20:22 UTC


README

Spress 2 ready

Spress插件,用于创建编译文件的gzip版本。

此插件旨在与NGINX的gzip_static模块一起使用。

入门

运行

composer require ghislainphu/spress-gzip-static

将这些行添加到您的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

许可

此项目采用MIT许可。

有关更多信息,请参阅LICENSE.md