🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

cs.plonepatches.resourceregistries

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cs.plonepatches.resourceregistries

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

1.0
PyPI
Maintainers
1

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.

.. _Resource Registries: https://pypi.python.org/pypi/Products.ResourceRegistries

Changelog

1.0 (2015-03-02)

  • Initial implementation [erral]

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts