I can't use the app.css in my application
I use
<link href="{{asset('css/app.css')}}" rel="stylesheet" type="text/css">
-
did you try compiling your assets? npm run dev or npm run watchWho Do You think am i– Who Do You think am i2022-06-19 08:29:59 +00:00Commented Jun 19, 2022 at 8:29
-
@vite("resources/css/app.css")user15023244– user150232442023-02-12 02:12:48 +00:00Commented Feb 12, 2023 at 2:12
Add a comment
|
3 Answers
By default the asset() helper starts with the /public folder. If you have already taken this into consideration then the only problem will be that you have not run npm run dev.
public/
|--- css/app.css
|---js/
<link href="{{asset('css/app.css')}}" rel="stylesheet" type="text/css"> = public/css/app.css
Comments
if
public/
|--- css/app.css
|---js/
and
<link href="{{asset('css/app.css')}}" rel="stylesheet" type="text/css"> = public/css/app.css
not work you can use
<link href="{{asset('css/app.css')}}" rel="stylesheet" type="text/css">
or you can use
<link href="{{asset('asset/css/app.css')}}" rel="stylesheet" type="text/css">