PostCSS
withpostcss-nesting
,autoprefixer
andnpm-run-all
for boilerplating projects quickly.- All the styles and App setup with the spinning react logo are removed for convenience.
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
I've replaced the usual yarn start
command with one which watches css changes too.
The regular yarn start
that ships with create-react-app this just watches for JS.
The page will reload if you make edits.
You will also see any lint errors in the console.
Watches and compiles PostCSS
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
I've changed yarn build
to also compile PostCSS if you want the regular build command you can run yarn build-js
which will just compile js, or yarn build:css
to just compile css.
Builds the app for production to the build
folder.
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.
Note: this is a one-way operation. Once you eject
, you can’t go back!