質問編集履歴
5
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -108,17 +108,11 @@
|
|
108
108
|
[【Laravel9】Laravel Mixを使用しているプロジェクトでBreezeをインストールすると、js・css共に反映されない問題](https://qiita.com/onkz/items/d609adf0891d810fe862)
|
109
109
|
|
110
110
|
!追記!
|
111
|
-
|
111
|
+
public/css/cssファイルにして<link href="{{ asset('/css/app.css') }}" rel="stylesheet">の書き方で複数のcssを反映させようとしたところ、コンソールのcssのNotFoundエラーは消えたのですがcssが反映されている様子はありません。
|
112
|
-
```
|
113
|
-
npm ERR! Missing script: "watch"
|
114
|
-
npm ERR!
|
115
|
-
npm ERR! To see a list of scripts, run:
|
116
|
-
npm ERR! npm run
|
117
112
|
|
118
|
-
|
113
|
+
ちなみにroom/showページのbuttonタグの背景を赤に出来るかを試したのですが、反映されていませんでした。
|
119
|
-
```
|
120
|
-
[Laravelでapp.jsやapp.cssが404NOT FOUNDするときの解決方法](https://poppotennis.com/posts/laravel-app-404#%E7%B5%90%E8%AB%96)
|
121
114
|
|
115
|
+
[【Laravel】CSSファイルの設置場所と読み込み方!publicとresourceの違い](https://appdev-room.com/php-laravel-css)
|
122
116
|
### 補足情報(FW/ツールのバージョンなど)
|
123
117
|
PHP8
|
124
118
|
Laravel10
|
4
試した事の追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -106,6 +106,19 @@
|
|
106
106
|
vite.config.jsのinput内に'resources/css/user.css', などを追記して見たりして@viteで指定したりもしたのですがエラーが発生して反映させれませんでした。
|
107
107
|
|
108
108
|
[【Laravel9】Laravel Mixを使用しているプロジェクトでBreezeをインストールすると、js・css共に反映されない問題](https://qiita.com/onkz/items/d609adf0891d810fe862)
|
109
|
+
|
110
|
+
!追記!
|
111
|
+
下記サイトの内容でnpm run watchコマンドを打って試したのですがエラーが表示されました。
|
112
|
+
```
|
113
|
+
npm ERR! Missing script: "watch"
|
114
|
+
npm ERR!
|
115
|
+
npm ERR! To see a list of scripts, run:
|
116
|
+
npm ERR! npm run
|
117
|
+
|
118
|
+
npm ERR! A complete log of this run can be found in: /home/ec2-user/.npm/_logs/2024-04-30T20_39_09_334Z-debug-0.log
|
119
|
+
```
|
120
|
+
[Laravelでapp.jsやapp.cssが404NOT FOUNDするときの解決方法](https://poppotennis.com/posts/laravel-app-404#%E7%B5%90%E8%AB%96)
|
121
|
+
|
109
122
|
### 補足情報(FW/ツールのバージョンなど)
|
110
123
|
PHP8
|
111
124
|
Laravel10
|
3
試したことの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -102,6 +102,9 @@
|
|
102
102
|
### 試したこと
|
103
103
|
下記のサイトの記述も試みたのですが、エラーが発生して反映させることが出来ませんでした。
|
104
104
|
|
105
|
+
!追記!
|
106
|
+
vite.config.jsのinput内に'resources/css/user.css', などを追記して見たりして@viteで指定したりもしたのですがエラーが発生して反映させれませんでした。
|
107
|
+
|
105
108
|
[【Laravel9】Laravel Mixを使用しているプロジェクトでBreezeをインストールすると、js・css共に反映されない問題](https://qiita.com/onkz/items/d609adf0891d810fe862)
|
106
109
|
### 補足情報(FW/ツールのバージョンなど)
|
107
110
|
PHP8
|
2
エラーの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,6 +5,39 @@
|
|
5
5
|
|
6
6
|
### 発生している問題・エラーメッセージ
|
7
7
|
cssファイルが反映されません。
|
8
|
+
!追記!
|
9
|
+
検証からコンソールを確認したところ下記の表示が出ました。
|
10
|
+
```
|
11
|
+
Failed to load resource: the server responded with a status of 404 (Not Found)
|
12
|
+
app.css:1
|
13
|
+
|
14
|
+
|
15
|
+
Failed to load resource: the server responded with a status of 404 (Not Found)
|
16
|
+
login.css:1
|
17
|
+
|
18
|
+
|
19
|
+
Failed to load resource: the server responded with a status of 404 (Not Found)
|
20
|
+
signup.css:1
|
21
|
+
|
22
|
+
|
23
|
+
Failed to load resource: the server responded with a status of 404 (Not Found)
|
24
|
+
signup.css:1
|
25
|
+
|
26
|
+
|
27
|
+
Failed to load resource: the server responded with a status of 404 (Not Found)
|
28
|
+
app.css:1
|
29
|
+
|
30
|
+
|
31
|
+
Failed to load resource: the server responded with a status of 404 (Not Found)
|
32
|
+
home.css:1
|
33
|
+
|
34
|
+
|
35
|
+
Failed to load resource: the server responded with a status of 404 (Not Found)
|
36
|
+
login.css:1
|
37
|
+
|
38
|
+
|
39
|
+
Failed to load resource: the server responded with a status of 404 (Not Found)
|
40
|
+
```
|
8
41
|
|
9
42
|
### 該当のソースコード
|
10
43
|
|
1
リンクの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
### 試したこと
|
70
70
|
下記のサイトの記述も試みたのですが、エラーが発生して反映させることが出来ませんでした。
|
71
71
|
|
72
|
+
[【Laravel9】Laravel Mixを使用しているプロジェクトでBreezeをインストールすると、js・css共に反映されない問題](https://qiita.com/onkz/items/d609adf0891d810fe862)
|
72
73
|
### 補足情報(FW/ツールのバージョンなど)
|
73
74
|
PHP8
|
74
75
|
Laravel10
|