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-react-app - Brunch version: Main issue

See original GitHub issue

create-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.

screen shot 2016-08-02 at 10 23 51 pm

Repositories

  1. The skeleton that works already without package.json deps and brunch config: https://github.com/brunch/cra-brunch-test
  2. 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:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
paulmillrcommented, Aug 31, 2016

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.

2reactions
lucasmreiscommented, Sep 7, 2016

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 😄 )

Read more comments on GitHub >

github_iconTop 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 >

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