1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

sass(scss)に初見殺しされた話

Posted at

ことの始まり

progateでsassを習ったので早速使って見ようとした
しかし、表示されるページに変化がない!

自分の環境

  • win10
  • VSCode

原因

sass(scss)の仕様を詳しくしらなかった
sass(scss)はコンパイルする必要がある

対処法

1: vscodeの場合は以下の拡張機能をダウンロードする

  • Live Sass Compiler
    スクリーンショット (2613).png

2: htmlファイルの<head>の部分に以下の2行を追加

<link rel='stylesheet' href='https://unpkg.com/ress/dist/ress.min.css'>
<link rel='stylesheet' href='styleSheetのパス'>

<link rel='stylesheet' href='https://unpkg.com/ress/dist/ress.min.css'>
の部分はブラウザごとにスタイルが崩れるのを防ぐために必要らしい

3: .sassもしくは.scssのファイルをいじる
4: vsCodeのwatch sassをクリック
スクリーンショット (2615).png

参考

1
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?