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
  • !3926

RFC: Exporting start script to facilitate custom start scripts in a CRA app without ejecting

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/VermontDesignWorks/module_export_start into next Jan 27, 2018
  • Overview 6
  • Commits 2
  • Pipelines 0
  • Changes 1

Created by: benglass

The use-case we had in mind was customizing the start script without ejecting (for example to add a listener for API calls to proxy them to a separate API server so the web app can talk to it without needing to use CORS). The thought was that if react-scripts start script exported a function to create the dev server then our code could simply require the start script and then add our own custom logic.

The code in this PR is for illustration/discussion purposes only, I havent run it. I wanted to see what your thoughts on this approach were or if there is another way to achieve our use case.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/VermontDesignWorks/module_export_start