An extension of the plone.resource plone:static zcml directive, that allows to specify two folders for a resource directory registration: A dev-directory and a dist-directory. When plone is running in debug mode the filesystem path specified in dev-directory is used to serve static resources for this resource registration. The dist-directory is used when not in debug mode. This allows to use tools like grunt to build production versions of resources, including minification, concatenation, image minification, etc.
Project description
An extension of the plone.resource plone:static zcml directive, that allows to specify two folders for a resource directory registration: A dev-directory and a dist-directory. When plone is running in debug mode the filesystem path specified in dev-directory is used to serve static resources for this resource registration. The dist-directory is used when not in debug mode. This allows to use tools like grunt to build production versions of resources, including minification, concatenation, image minification, etc.
Examples
Changelog
0.2 (2015-08-19)
Make it possible to configure the use of theme dev or dist directory with an environment variable. [sunew]
0.1 (2015-07-05)
Initial release. [sunew]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file collective.dualresources-0.2.tar.gz
.
File metadata
- Download URL: collective.dualresources-0.2.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 310e9007f9a94dae029bddcac74c2cd31e9929e0a31468800fcfa7ed79ffb1dc |
|
MD5 | d25276504deac81f80c35946f1463dab |
|
BLAKE2b-256 | 0cbc6ccb2b602c95b42844e4442e764d1dfe0ead9943708dae643cffacfdc66b |