ivange94 / react-starter-webpack

A react started configured from scratch with webpack and babel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-starter-webpack

A react started configured from scratch with webpack and babel.

Introduction

If you're starting a new React project, the recommended way is to use Create React App. But in those rare occassions where you need to configure your own React project from scratch, this template is for you. This gives you control of webpack beyond what's provided by create-react-app.

Features

  • Support for .jsx extensions
  • Support for CSS
  • Support for SASS
  • Support for TypeScript
  • Dev server for live reload
  • Production build

Setup

Clone the project

$ git clone https://github.com/ivange94/react-starter-webpack.git appName

Where appName represents the app you're trying to build

Build

$ cd appName
$ npm install
$ npm run build

This will generate a /dist folder with you can deploy.

Run development server

$ npm start

This will spin up a dev server on http://localhost:8080/ with live reload enabled.

Happy Coding!!!

About

A react started configured from scratch with webpack and babel

License:MIT License


Languages

Language:JavaScript 87.6%Language:HTML 10.5%Language:SCSS 1.8%