wenpai.org/wp-content/plugins/http-concat
2024-12-09 23:55:39 +08:00
..
cssmin feat: 更新一大批插件 2024-12-09 23:55:39 +08:00
tests feat: 更新一大批插件 2024-12-09 23:55:39 +08:00
vendor feat: 更新一大批插件 2024-12-09 23:55:39 +08:00
composer.json feat: 更新一大批插件 2024-12-09 23:55:39 +08:00
composer.lock feat: 更新一大批插件 2024-12-09 23:55:39 +08:00
concat-utils.php feat: 更新一大批插件 2024-12-09 23:55:39 +08:00
cssconcat.php feat: 更新一大批插件 2024-12-09 23:55:39 +08:00
jsconcat.php feat: 更新一大批插件 2024-12-09 23:55:39 +08:00
LICENSE feat: 更新一大批插件 2024-12-09 23:55:39 +08:00
ngx-http-concat.php feat: 更新一大批插件 2024-12-09 23:55:39 +08:00
phpunit.xml.dist feat: 更新一大批插件 2024-12-09 23:55:39 +08:00
README.md feat: 更新一大批插件 2024-12-09 23:55:39 +08:00

nginx-http-concat

Overview

WP.com plugin to perform CSS and Javascript concatenation of individual scripts into a single script.

Installation & Configuration

  1. Copy the http-concat directory and its contents to your WordPress plugins directory.

  2. Configure the NGINX server to perform the concatenation step in the process by adding the following to your WordPress installations NGINX configuration:

    location /_static/ {
        fastcgi_pass unix:/var/run/fastcgi.sock;
        include /etc/nginx/fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root/wp-content/plugins/http-concat/ngx-http-concat.php;
    }
  1. Once this is done the installation is ready for use and you can enable/disable the JS and/or CSS concatenation via the plugins interface of your WordPress installation.