Skip to content

Dedicated webpack.config.js without ejecting #6100

Closed
@Larkenx

Description

@Larkenx

Feature Request

After using the new vue-cli 3 for a hobby project, I think it would be great if create-react-app could follow suite with something similar to its webpack configuration, see https://cli.vuejs.org/guide/webpack.html#simple-configuration.

The tldr is that we could add a webpack.config.js to the root of the project folder that's optional, and it accepts the webpack modules and we can chain / configure webpack without ejecting. This is great because really, the only customized pieces I need for webpack for my purposes are:

  1. Webpack aliasing
  2. Adding some custom webpack loaders

I've come to a really annoying standstill with the create-react-app because I can't load markdown files - I need to manually add a raw-loader so I can use markdown-to-jsx (see #3722 ). I don't want to sacrifice ejecting my create-react-app that will break future versions of webpack for example - but I need to have some sort of customization of webpack configuration. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions