How to solve the inability to load css in the deployed Angular project version

Discussão em 'Angular' iniciado por AkizaS, Fevereiro 6, 2025.

  1. AkizaS

    AkizaS Guest

    When I deploy my project the css does not load when refreshing the url of the test site, locally the problem does not arise. Each time we have to modify the URL by going to the root for it to work. I don't know how to solve this problem. I thank you in advance for your help.

    "styles": [
    "@angular/material/prebuilt-themes/pink-bluegrey.css",
    "src/styles.css"
    ],


    @import "../src/theme.scss";

    html, body { height: 100%; }
    body{ background-color: #DBDDD5;
    margin: 0;
    }


    @use "@angular/material" as mat;

    @include mat.core();

    $custom-primary-palette: (

    Continue reading...

Compartilhe esta Página