Skip to main content

A patch for Resource Registries to create a single minified file. Two if the user is logged-in

Project description

Introduction

Resource Registries creates a unique URL each time a CSS or JS file is modified providing a way create unique files without having to rename the original ones.

It also has a feature to concatenate several CSS or JS files to less files to the user. But with the way this concatenation is done sometimes the files that can be safely concatenated are not, because the tool just tries to concatenate one file with the previous file. For example:

We have 4 files registered in this order: a.css, b.css, c.css and d.css. If a.css, b.css and d.css are compatible to be concatenated but c.css is not, Resource Registries will create 3 files: ab.css, c.css and d.css.

This product, patches the way those concatenated files are created to check all previously concatenated files and concatenate the file there. This way, in the previous example, the patch will create 2 files: abd.css and d.css

Installing

Add this product to your buildout, re-run buildout and restart your instance, the patch will be applied automatically.

To remove this feature, just remove the product from your buildout, re-run it and restart the instance.

The product doesn’t create an install profile entry in the Products Control Panel and doesn’t save anything on the database.

Changelog

1.0 (2015-03-02)

  • Initial implementation [erral]

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cs.plonepatches.resourceregistries-1.0.zip (27.4 kB view details)

Uploaded Source

File details

Details for the file cs.plonepatches.resourceregistries-1.0.zip.

File metadata

File hashes

Hashes for cs.plonepatches.resourceregistries-1.0.zip
Algorithm Hash digest
SHA256 0054f9e598d63f1560282b66fdc08254d2bc48e29fce2db6f373c2f00e3f6b93
MD5 0ab308342c1050bb8fa51da0ed9850e0
BLAKE2b-256 302eaa071a6cb5e932dd99e9cb40355c55ff57148cc023c7fdfe5af618fdb60d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page