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

138
Views
Importing Angular 2 css from npm?

Id like to:

npm install some-css-component

And then from the corresponding angular 2 component:

@Component({
    selector: 'some-component',
    styleUrls: [ 'some-css-component, ...' ]
})

Is there a way to configure the angular build to resolve the npm some-css-component?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can use CSS imports like in global styles:

@Component({
    selector: 'some-component',
    styles: [
        '@import "/node_modules/some-css-component/dist/css/styles.css"'
    ],
})
over 4 years ago · Santiago Trujillo Report
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!