LoginSignup
3

More than 5 years have passed since last update.

CSSリファクタリング

Last updated at Posted at 2019-03-06

使ってないCSS,スタイルを、みつけて、あぶりだして消す

reset cssとか消さないよう注意

image.png
エラーが出ているのは気にしてはいけない

Consoleが無かったら下記で表示
image.png

image.png

みっけ
image.png

SCSSに変換

ざっくりSASSに変換

同じセレクタをソートしてまとめておくこと
http://css2sass.herokuapp.com/

SASSチート


/* 範囲&ビルド時消えないコメントアウト 圧縮時消える */
/*! 範囲&ビルド時消えないコメントアウト 圧縮時消えない */
// 1行 & ビルド時消えるコメントアウト

autoprefixer

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