Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

165
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!