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.
Lectures and tutorial on "Scripting client side JavaScript, jqvery, BackBone"
Comments