total-minifier.vim


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2012-09-25
使用用户:  2
Github星:  0
插件作者:  Mizoue Atsushi

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'atsushim/total-minifier-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'atsushim/total-minifier-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'atsushim/total-minifier-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/atsushim/total-minifier.vim

Ⅳ. 文档说明

:TotalMinifierCreate
ミニファイ用の設定ファイルを現在のディレクトリに書き出します。


TotalMinifier Config file.

デプロイ用ディレクトリ

deploy_dir: ../deploy

ミニファイ開始&終了時にgrowlnotifyで通知する

use_growlnotify: 1

デプロイ開始時にデプロイ用ディレクトリ内を全削除

before_reset: 1

html, img, jsなどバイナリファイルの名称を短い文字列に変換(未実装

binary_rename: 1

.svnフォルダを削除する

remove_svn: 1

ミニファイ(html)の対象(スペース区切りで複数指定)

html: index.html test1/index.html test2/index.html test2/test3/index.html
html_nullprop: 0

ミニファイ(css)の対象(スペース区切りで複数指定)

css: css/screen.css css/ie.css css/print.css

移動する対象のjs(ミニファイ未実装)

js: js/main.min.js js/min/main.js

画像のディレクトリ(一つのみ)

img: imgs


:TotalMinifier
設定ファイルを検索し、ミニファイを実行します。

添加新评论