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

157
Views
How to filter or extract specific CSS ruleset from a .css file and put it in a separate file

Is it possible to extract or filter some specific CSS ruleset from a .css file using webpack (using plugin perhaps) or nodejs, and put it in a separate file (fs node)? If yes how?

e.g.

I want to extract .my_class1 ruleset from all.css and put it in separate file extracted.css

Before Extraction

/* all.css */

.my_class1 {
  color: red;
  background: red;
}


.my_class2 {
  color: green;
  background: green;
}

.my_class3 {
  color: blue;
  background: blue;
}

After Extraction

/* all.css */

.my_class2 {
  color: green;
  background: green;
}

.my_class3 {
  color: blue;
  background: blue;
}
/* extracted.css */

.my_class1 {
  color: red;
  background: red;
}
over 4 years ago · Santiago Trujillo
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!