A super simple React boilerplate.
- Webpack 4
- Styled Components
- HMR
- ESLint + Prettier
- PWA ready
cp sample.env .env
npm install
Sample config can be found in sample.env
.
At the moment the following values are supported:
- PORT: The port the webpack dev server runs on.
- NODE_ENV: Changing this value to
production
enables a service worker. - API_URL: Api Url which is proxied by the Webpack dev server (and nginx if you use the Docker image).
- PUBLIC_URL: This value is only necessary to be included when you need to host the build output on a subdirectory. For example
https://yourwebsite.com/carbon/
npm start
- Set NODE_ENV=production to enable the service worker.
npm run build
OR
npm run clean-and-build
- Right click on src -> Mark directory as -> Resource Root.
- After first build: Right click on build -> Mark directory as -> Excluded.
- Francois - Initial work - fjlaubscher
- Kyle - Initial work - MrOpperman
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Carbon is © 2019 Leadhome Pty Ltd. It is free software, and may be redistributed under the terms specified in the LICENSE file.
Carbon was created and is maintained by Leadhome Pty Ltd.
The names and logos for Leadhome are trademarks of Leadhome Pty Ltd.