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

220
Views
NestJS: only use webpack for production build

When using NestJS CLI to build apps, it uses WebPack by default - which can be changed in nest-cli.json.

However, WebPack takes time, and most build are for development purposes, on developers' laptops. Can I set Nest CLI to only use WebPack when building for production?

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

0

The easiest way to do this is by passing --tsc and --webpack along with nest start and nest build commands like this:

nest start --tsc // start with typescript
nest start --webpack // start with webpack

If your configurations are complicated then you can create two separate nest-cli.json config file and use --config option to choose each of them depending on your circumstances whether that you are in dev mode or production:

nest start --config [path]
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!