hratx39-blue-ocean / deep-dive

Blue Ocean Primary Deployment
0 stars 12 forks source link

babel and webpack config #47

Open scottkelder opened 5 years ago

scottkelder commented 5 years ago
  1. Create babel and webpack config files
  2. Create package.json scripts to allow quick webpack builds in different environments
  3. Configure Jest to support babel and webpack

Or let CreateReactApp manage all of that don't worry about any of it

scottkelder commented 5 years ago

create-react-app invalidates almost all the work done here. It is possible to 'eject' from the preconfigured environment but this option was deemed too labor-intensive for the limited time span.

However, there is a way to access some of config options without running eject. The best option I found is called 'react-app-rewired' which offers a way to override some of the config settings native to create-react-app. Pay attention to the Ant Design doc's page with info on how to set this up correctly with Ant if we go this route.