โœจ Production

When it comes time to bundle your application for production, you can use Parcel's production mode.

parcel build entry.js

This disables watch mode and hot module replacement so it will only build once. It also enables the minifier for all output bundles to reduce file size. The minifiers used by Parcel are uglify-es for JavaScript, cssnano for CSS, and htmlnano for HTML.

Enabling production mode also sets the NODE_ENV=production environment variable. Large libraries like React have development only debugging features which are disabled by setting this environment variable, which results in smaller and faster builds for production.