Create-react-app - Brunch version: Main issue
See original GitHub issuecreate-react-app is a new tool by Facebook that allows to easily create no-config react apps.
Brunch is much simpler & faster than webpack — and we should try to replace webpack in the tool. This issue is continuation of gh-1466.
Repositories
- The skeleton that works already without
package.json
deps and brunch config: https://github.com/brunch/cra-brunch-test - The mediator that made the skeleton possible; alternative to
react-scripts
: https://github.com/brunch/cra-brunch
First release
First and basic release after which i’m going to create the Pull Request to CRA should come with:
- Basic babel with React (Aug 21)
- Basic postcss with Autoprefixer (Aug 21)
- Basic ESLint (WIP)
Milestone II
- Replicate all babel, postcss and eslint rules
- Ability to import CSS and SVG files. Need to clarify this one with Dan
Milestone III
- Environments support
- Babel environments support (
babel.dev.js
,babel.prod.js
) -
polyfills.js
inclusion - HTML minifying
- Webserver improvements
Milestone IV
-
brunch build —production
should produce a html file with hashes appended to.js
and.css
sources -
eject
script
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:10 (5 by maintainers)
Top Results From Across the Web
By default master branch is created, but now github uses main ...
Describe the bug create-react-app sets master as the default branch but Github has now changed the default branch to be main.
Read more >Show Current Git Branch and Commit Hash From Any OS
I want to show the current git branch and commit hash in my (Create) React App. Others have done this by setting custom...
Read more >Deployment | Create React App
By default, Create React App produces a build assuming your app is hosted at the server root. ... This will let Create React...
Read more >GitHub Pages Page Not Found for React App - Stack Overflow
I have a main and a gh-pages branch. Right now I have it set to build from the gh-pages branch. If I change...
Read more >Deploy a React application · Cloudflare Pages docs
In this guide, you will create a new React application and deploy it using Cloudflare Pages. ... git branch -M main.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s mostly philosophy. I have never been a fan of huge configuration files. The size of a popular Brunch config is about 5-10 LOC.
This is very detailed and not useful: webpack.dev.js. For example, why do I need to specify that JS should be processed with Babel? Instead of simply adding the plugin to
package.json
. Or, postcss.One of the big problems of create-react-app is dealing with the complexity of the build process after
eject
. It’s amazing that a version of it with Brunch is being developed! (and genius marketing move for Brunch itself 😄 )