Minifierプラグイン

スタイルシートやJavaScriptファイルのminify機能を実現するプラグイン。MT4専用。

Minifier-0.01.zip

本ソフトウェアは個人用・商用を問わず無償で提供されています。継続的な開発をご支援くださる方はご寄付をご考慮ください。

更新履歴

  • 0.01:
    • Initial release.

概要

Minifierプラグインを使うと、スタイルシートやJavaScriptのテンプレートをminifyし、出力ファイルサイズを圧縮することができます。

インストール

  1. Minifier-<version>.zipファイルをダウンロードし、展開します。
  2. Minifier-<version>/plugins ディレクトリの内容を、Movable Typeのpluginsディレクトリにアップロードまたはコピーします。
  3. インストールが正常に済めば、「システムプラグイン設定」の画面で「Minifier」プラグインが確認できるでしょう。

タグ・モディファイア

Minifierプラグインは、mt:CSSMinifierとmt:JSMinifierというブロックタグを実現しています。

mt:CSSMinifier

スタイルシートテンプレートをminifyするブロックタグ。

使用例:

    <mt:CSSMinify>
    (contents of CSS template)
    </mt:CSSMinify>

mt:JSMinifier

JavaScriptテンプレートをminifyするブロックタグ。

使用例:

    <mt:JSMinify>
    (contents of JavaScript template)
    </mt:JSMinify>

See Also

License

Copyright (c) 2008 Hirotaka Ogawa <hirotaka.ogawa at gmail.com>. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the terms of either:

  • the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or
  • the "Artistic License" which comes with Perl.