Open Terminal and cd
into your preffered directory and run
git clone https://github.com/gabesu/react-newbie-boilerplate.git your-project-name
cd your-project-name
and the install the npm packages by running
npm install
Hurray! Now we're all setup. Now we can run:
npm start
This run your project in 'development' mode and will open up your project in your default browser with Hot Module Reload so your browser automatically refreshes once a change is made.
To build your project for production simply run:
npm run build
This should create /dist
folder in your project directory containing your bundled files.
- Babel Loader
- Sass Loader
- Autoprefixing (PostCSS Loader)
- Image Bundling using File Loader
- CSS extraction with MiniCSSExtractPlugin