Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !7866

[WIP] Add react.config.js

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/yordis/yordis/react-config into master Oct 23, 2019
  • Overview 19
  • Commits 30
  • Pipelines 0
  • Changes 5

Created by: yordis

A combination of webpack-chain and react.config.js would allow us to extend CRA without having to eject.

// react.config.js

module.exports = function() {
  return {
    webpackOverride(config) {
        // ... use webpack-chain API
    }
  }
}

I would love to have a conversation about this topic since we were asking for years about this and many people could take advantage of this feature.

Or

We could expose a webpack-chain config object as well as the existing plain object. The reasoning is that webpack-merge could do that much and webpack-chain configurations allow us to customize the config easier and more robust.

This will be useful for those who want to use CRA configuration since there is a lot of knowledge on the configuration but are forced to eject.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/yordis/yordis/react-config