This is a simple react + webpack starter kit
This repository includes just the webpack, react and babel.
- Bundles React with
jsx
syntax - Compiles ES6 (with Babel)
- Build with webpack
- Webpack dashboard (for the terminal) webpack-dashboard
- Sass loader with sass-loader
- Image loader with image-webpack-loader
- Autoprefixer with autoprefixer-loader
- Develop locally with webpack-dev-server
Warning: Make sure you're using the latest version of Node.js and NPM
Clone/Download the repo then edit
main.js
inside/app/main.js
# clone repo
$ git clone https://github.com/cemarguvanli/webpack-starter-with-react my-app-name
# change directory to your app
$ cd my-app-name
# install the dependencies with npm
$ npm install
# start the server
$ npm start
go to http://localhost:8080 in your browser.
fork
this repoclone
your forknpm install
to install all dependencies
After you have installed all dependencies, you can run the app with:
npm start
npm run build