build dist only in production mode