LoginSignup
3
4

More than 5 years have passed since last update.

cssCombのハマりどころ

Last updated at Posted at 2017-05-02

概要

最近いろいろと設定方法が変わっていたのでメモ。

プロジェクトルートもしくはそれ以上の階層に設定ファイルを置く

  • .csscomb.jsonという設定ファイルを作成して配置する。
  • 1つのファイルを作っておいて統一的に利用する場合は1つを最上層においておけばよい。
  • プロジェクトごとに作りたい場合は各プロジェクトルートに置く。

プロパティをアルファベット順に並べたい場合

  • sort-order: ["..."]の記述を追加する。
  • 公式サイトの「buildConfig」から作成すると、この記述が抜けている。

Atom

Atomで使う話

数種類同様のパッケージがある

  • このパッケージが、上記設定で並び順も適用でき、ちゃんと動く。
  • ショートカットはcmd + alt + C
3
4
1

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
3
4