You get a bonus - 1 coin for daily activity.
Now you have 1 coin
How do you enable production mode in React? in REACT
Practice
You should use WebPack's
DefinePlugin
method to set
NODE_ENV
to
production
, with which it will strip out things like propType checking and extra warnings. On top of that, if you minify the code, for example Uglify's dead-code elimination, in order to strip out development-only code and comments, this will significantly reduce the size of your bundle.
Comments
To leave a comment
If you have any suggestion, idea, thanks or comment,
feel free to write. We really value feedback and are glad to hear your opinion.
Comments