Symfony 5 won’t load CSS file

I am new to Symfony (and this is my first time posting here). I’m working on a project, however Symfony won’t load the css file. I have installed Asset already.

I have tried loading the file both with asset{{}} and without. Also I tried including /public and without.

The ways I have tried :

<link rel="stylesheet" href="{{ asset('/build/css/app.css') }}">

<link rel="stylesheet" href="{{ asset('/public/build/css/app.css') }}">

<link rel="stylesheet" href="/public/build/css/app.css'">

<link rel="stylesheet" href="/build/css/app.css'">

<link rel="stylesheet" href="../../public/build/css/app.css'">

Here is a photo of my files

Any help would be appreciated, thanks!

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *