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

192
Views
How to run server only after webpack completes bundling bundles?
"scripts": {
    "start": "node server.js",
    "build": "webpack"
  },

how to run npm run build first and then npm start in a single command?

"scripts": {
    "start": "node server.js",
    "build": "webpack",
    "start-dev" : "npm run build && npm run start"
   },

I tried the command npm run start-dev. But only webpack is being compiled. The server isn't running.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

I don't know why that doesn't work, but, anyway, you can try this:

"scripts": {
    "start": "node server.js",
    "build": "webpack",
    "start-dev" : "webpack && node server.js"
}
about 4 years ago · Juan Pablo Isaza Report

0

      npm i npm-run-all

this package never run into issue. You can add as many as commands

   "dev:start": "npm-run-all build start",
about 4 years ago · Juan Pablo Isaza 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!