Create React App is a tool to set up react project with good defaults. I am using this for some little short-term project and enjoy configuration-less developer environment.
It would be nice to use react-styleguidist the same way: without any configuration, just specified that I am using well-known project setup. Let's say that we should set updateWebpackConfig to something like this:
module.exports = {
components: './src/components/**/index.js',
updateWebpackConfig: require('react-styleguidist/react-app-preset')
};
The name of this import can be different but the idea is that config doesn't have any options, just one simple require instead of the wall of typical setup.
So far I could make it working together with the this styleguide.config.js.
What do you think about putting this into core project to help users to setup styleguides with create-react-app easier?
Create React App is a tool to set up react project with good defaults. I am using this for some little short-term project and enjoy configuration-less developer environment.
It would be nice to use
react-styleguidistthe same way: without any configuration, just specified that I am using well-known project setup. Let's say that we should setupdateWebpackConfigto something like this:The name of this import can be different but the idea is that config doesn't have any options, just one simple
requireinstead of the wall of typical setup.So far I could make it working together with the this
styleguide.config.js.What do you think about putting this into core project to help users to setup styleguides with create-react-app easier?