Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[AssetMapper] @import directive does not work in css #60729

Open
@lyrixx

Description

@lyrixx

Symfony version(s) affected

7.3.0

Description

In my app.css, I put

@import './test.css';

and in test.css:

body {
    background-color: red;
}

And the background is still white

=> My browser try to load https://127.0.0.1:8000/assets/styles/test.css, but faces a 404.

I'm using symfony-cli, but it's the same with caddy


Note

I have another issue this relative URL, but I cannot reproduce it because of this bug.

How to reproduce

See this repo

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions