LoginSignup
1
1

More than 5 years have passed since last update.

LESS + CSS Lint の設定

Last updated at Posted at 2013-01-10

less を使いつつ、CSS Lint も同時に使う設定。

コマンドを使い『less から css にコンパイル、出力した css に Lint を実行』まで一回で行う。

必要環境 )

設定)

連続して実行する関数を zsh に登録 (.zshrc に追記)
プロセス置換を使い、一時ファイルを生成しないで実行。

bash でもプロセス置換はあるので zsh 必須では無い。

function lesslint {
  csslint <(lessc $@) 
}

そして実行

$ lesslint my.less

とりあえずこんな感じで。
誰か、もっと優雅なやり方を教えて下さい。。。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1