Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

164
Visualizações
How to add static css file to NX lib

I'm using NX.dev with Angular projects and I have a few projects and libs. Im having a few static CSS/SCSS files I want to share for all projects (Apps & libs)

First CSS file - I want to just bundle it in the projects, in order to do that I added it to the project JSON file per app like this.

"targets": {
"build": {
    "styles": [
        "libs/ui/src/lib/styles/style.bundle.css"
    ],
}

}

It's working great, But I'm not getting I'm getting the same effect for the libs (It's not working)...

Second SCSS file - this file is a global variable file, I want this file to be available on-demand in the lib SCSS files. I want each file to be able to do this:

@import "variables";

Not sure how to achieve that.

Any idea how can I get these two files into my libs? One file should add on compile and one on-demand

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda