Open NogsMPLS opened 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.
styleguide
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.
:+1:
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.