Create react app output supporting themes in dev and production
- node
- yarn
$ yarn
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
You can use the URL aliases to navigate to the specific theme:
- '/cat1' - For the category1 theme (default)
- '/cat2' - For the category2 theme
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder with the themes specified in config/paths.js
.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
By default, the generated project uses the latest version of React.
You can refer to the React documentation for more information about supported browsers.
- This project was bootstrapped with Create React App
- Instead of having done a
npm run eject
, instead this repo could be re-designed as a customized fork ofreact-scripts
as per: https://auth0.com/blog/how-to-configure-create-react-app/