only regenerate client side file on development

Summary: only regenerate client side file on development

Test Plan: npm test

Reviewers: Sergey, andybons

Reviewed By: Sergey

CC: Engineering

Differential Revision: https://phabricator.poptip.com/D894