collective.dualresources-擴展普隆.資源plone:靜態zcml指令,容許爲資源目錄註冊指定兩個文件夾:dev目錄和dist目錄。當plone以調試模式運行時,dev目錄...

collective.dualresources-擴展普隆.資源plone:靜態zcml指令,容許爲資源目錄註冊指定兩個文件夾:dev目錄和dist目錄。當plone以調試模式運行時,dev目錄中指定的文件系統路徑用於爲該資源註冊提供靜態資源。dist目錄在不處於調試模式時使用。這容許使用諸如grunt這樣的工具來構建資源的生產版本,包括縮小、鏈接、圖像縮小等。-Sune Broendum Woeller

發佈:2020-12-23 14:52:11.919963

做者:Sune Broendum Woeller

做者郵箱:sune@woeller.dk

首頁:https://github.com/collective/dualresources

文檔:None

下載連接 UNKNOWN

.. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features. If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentationstyleguideaddons.html This text does not appear on pypi or github. It is a comment.html

==============================================================================git

collective.dualresources

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.github

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]app

    Copy from pypi.orgide

查詢時間:4.722ms
渲染時間:4.838ms

本文同步分享在 博客「zhenruyan」(other)。
若有侵權,請聯繫 support@oschina.cn 刪除。
本文參與「OSC源創計劃」,歡迎正在閱讀的你也加入,一塊兒分享。grunt

相關文章
相關標籤/搜索