Minifierプラグイン
スタイルシートやJavaScriptファイルのminify機能を実現するプラグイン。MT4専用。
本ソフトウェアは個人用・商用を問わず無償で提供されています。継続的な開発をご支援くださる方はご寄付をご考慮ください。
更新履歴
- 0.01:
- Initial release.
概要
Minifierプラグインを使うと、スタイルシートやJavaScriptのテンプレートをminifyし、出力ファイルサイズを圧縮することができます。
インストール
- Minifier-<version>.zipファイルをダウンロードし、展開します。
- Minifier-<version>/plugins ディレクトリの内容を、Movable Typeのpluginsディレクトリにアップロードまたはコピーします。
- インストールが正常に済めば、「システムプラグイン設定」の画面で「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
- Minifier (English document)
- /Minifier (TracBrowser)
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.
![(please configure the [header_logo] section in trac.ini)](/public/chrome/common/trac_banner.png)