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

115
Views
Webpack css conflicts

I have monorepo under lerna that contains modules dependent one to another.

I have Text module that has import of css file in index.ts like:

import './text.css'

I have Button module that uses Text as dependency

And I have external application that use both of them.

Issue: When webpack build html it put all css in <head> so for example if button use Text v1.1.1 and my application use Text v2.2.2 one of them will override another... Can I say to webpack, when you add css as <style> tag wrap it with some class like:

.button {
   /// put here css that comes from `Text` element under the `Button`
}

or may be if someone know other solutions for my issue? Thanks

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!