LoginSignup
2
2

More than 5 years have passed since last update.

複数人でSassファイルを編集する場合のベストプラクティス?

Last updated at Posted at 2014-02-03

既存Sassファイルの末尾に、@import を用いて追加修正用のSassファイルをインポートする。

その際、インポートされるファイルは、@import のみ記述、実際の修正を記述したSassファイルは、各人のフォルダに配置。

hoge.scss

/* 最終行 */
@import 'additional';

_additional.scss

@import 'person1/hoge.scss';
@import 'person2/fuga.scss';

既存Sassファイルは、作成者のみが編集可能で、それ以外のメンバーは、該当ファイルにインポートされるファイルのみ編集可能とすれば、ファイル構造を変更しなくても複数人でSassファイルの修正が可能になる。

2
2
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
2
2