nasyrov/nginx-http-concat

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

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 0

Forks: 28

Type:wordpress-muplugin

v1.0.0 2018-11-11 00:48 UTC

README

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 /wp/_static/ {
    include fastcgi_params;
    fastcgi_pass heroku-fcgi;
    fastcgi_param SCRIPT_FILENAME $document_root/app/mu-plugins/nginx-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.