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

139
Views
Bundling all relevant JS and CSS files

In my very old legacy project I want to make use of npm to update the JS-libraries automatically.

Using a package.json like:

{
  "name": "whoCares",
  "version": "0.0.1",
  "license": "MIT",
  "dependencies": {
    "chosen-jquery": "0.1.1",
    "ol": "6.9.0",
    "toastr": "2.1.4"
  }
}

I can fire the npm install to fill node_modules with stuff.

Now I need to create 2 bundle files for JS and CSS resources, by picking only the minified versions of the libraries with all possible dependencies included. I want only the production-relevant parts of libraries to be in, so all docs, examples, tests etc must be excluded.

Is there a simple way to achieve that out-of-box?

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!