title: How to enable prop-types in production for a React Storybook for the Docs addon
body: <p>By default prop-types do not run in production for a react app. I realize this is a good thing to improve performance. However, we have a <a href="https://www.npmjs.com/package/@storybook/addon-docs" rel="noreferrer">Storybook</a> that we have built and are deploying it to a static site. Storybook has an addon called Docs that detects the prop-types for components and creates a table of the prop-types for easy to read documentation. </p>
  
  <p>When running the storybook locally, everything works perfectly. The prop-types are detected and this table is generated.</p>
  
  <pre><code>SpinningLoader.propTypes = {
    color: PropTypes.string,
    size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
  };
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/2J5Bf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2J5Bf.png" alt="enter image description here"></a></p>
  
  <p>However, since prop-types are disabled in production by default. They cannot be detected when the storybook is deployed to a static site.</p>
  
  <p><a href="https://i.stack.imgur.com/bViLC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bViLC.png" alt="enter image description here"></a></p>
  
  <p>Is there a way to enable prop-types in production? Or some other workaround?</p>