Skip to content
Fred Chien edited this page Sep 30, 2015 · 1 revision

There are some optimization works we must do for deploying to production environment.

Webpack

Minifying source code is always needed for production environment, the -p option will let webpack to reduce JavaScript files to a size that is less than half of original size.

webpack -p

Note that a lots of WARNING messages you will get, don't panic.