question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create a React App

See original GitHub issue

Create a React App. Basically an express middleware that runs create-react-app in dev and builds in prod.

Question: React uses the webpack-dev-server should we proxy to this or re-create the process with an express middleware?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
JedWatsoncommented, Oct 10, 2019

This would be really nice to have, but not a high priority if it takes much time. Setting as low for now. Would be a great contribution 👍

1reaction
GasimGasimzadacommented, Oct 24, 2019

Does it have to be “Create React App”? What about managing a custom webpack configuration?

EDIT: I was able to set up a custom React app configuration that uses webpack dev and hot middleware for development and express static middleware for serving production builds. There are a lot of options missing in webpack configuration.

If you do not require using “Create React App” specifically for webpack configuration, I am willing work on this and provide an extendable interface that allows choosing the source and build directories, as well as extending webpack configuration to add additional features (e.g a user can install svg-loader if necessary).

To get users starting in a fast way, I suggest supporting the following features:

  • Typescript
  • Standard assets (fonts, images etc)
  • CSS Modules, SASS, Styled components (emotion and / or styled-components)
  • Importing GraphQL files (.gql / .graphql)
  • Markdown / MDX
Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a New React App
Create React App is a comfortable environment for learning React, and is the best way to start building a new single-page application in...
Read more >
Create React App
Whether you're using React or another library, Create React App lets you focus on code, not build tools. To create a project called...
Read more >
React Getting Started - W3Schools
If you have npx and Node.js installed, you can create a React application by using create-react-app . If you've previously installed create-react-app ......
Read more >
facebook/create-react-app: Set up a modern web app ... - GitHub
Create React App is open source software licensed as MIT. The Create React App logo is licensed under a Creative Commons Attribution 4.0...
Read more >
7 Ways to Create a New React Application - Bits and Pieces
7 Ways to Create a New React Application · 1. Nothing but React · 2. Bit · 3. NextJS · 4. Remix.run ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found