LoginSignup
0
0

More than 3 years have passed since last update.

LaravelでSCSSを導入する方法

Last updated at Posted at 2019-12-16

Node.jsがインストールされている必要があるため確認

node -v

v10.16.3
npm install

npm installは、npmリポジトリからライブラリをダウンロードしてくるコマンドです。

npm run dev
npm run watch

このコマンドを実行することでscssファイルの記述が増える度にその記述がapp.cssに追記される。

helloapp.blade.php
<link rel="stylesheet" href="/css/app.css"> 

ここで読み込む必要があるのは/sass/app.scss
scssの記述をapp.cssでコンパイルしているため。

自分用のメモとして残しました。
他の方の参考になるよう後日編集します。

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