pocotan001 / react-styleguide-generator

Easily generate a good-looking styleguide by adding some documentation to your React project.
http://pocotan001.github.io/react-styleguide-generator
MIT License
700 stars 76 forks source link

removing styleguide static for prd builds #23

Open NogsMPLS opened 8 years ago

NogsMPLS commented 8 years ago

So I asked this question of at: https://github.com/theogravity/react-styleguide-generator-alt/issues/18 and basically was thinking that having the ability to remove the styleguide static attached to any given component would be good for minifying production builds.

So with that in mind, I went ahead and created this:https://www.npmjs.com/package/babel-plugin-transform-react-remove-statics

Should allow you to flexibly remove any statics (propTypes/styleguide/etc) in whatever enviornment you want via babel config.

Just thought it might help some users that want to use this repo but still publish production ready code.

TigerC10 commented 8 years ago

:+1: