Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

166
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda