Skip to content

Support create-react-app out from the box #191

Closed
@just-boris

Description

@just-boris

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions