Nrwl NX nodejs production build remove comments and minify

Viewed 316

Inside a Nrwl NX monorepo there's a nodejs app.

When building for production, how can this be achieved:

  1. Remove comments
  2. Minify the app

I don't get how webpack configuration works in the Nrwl NX namespace or how to install webpack modules like UglifyJSPlugin.

Any help is appreciated.

0 Answers
Related