Skip to content
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.

A Starter template for React JS using webpack adapted for developer and production builds.

License

Notifications You must be signed in to change notification settings

vikas-0/webpack-react-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Do not use

This repo is very old and haven't been updated since a very long time. Also this repo is created for learning purpose and there and not intended to use in production.

Webpack ReactJS starter

A Starter template for React JS using webpack adapted for developer and production builds.

create-react-app is a very good tool for starting a react js app. But lot of configurations are abstracted and hidden in it. If you need different configurations you have to set up your own webpack.

This project is plain simple webpack implementation with ReactJS, ES6 and JSX support with some other features which can be easily removed (if you don't want it) or configured.

Installation

Clone or download this repository
Then run

yarn install

To start a development server, run

yarn start

and then you can try editing source code in 'src' folder

To build the package , run

yarn build

package will be built into 'dist' folder

Features

  • Different webpack configuration file for production and development to get best of both worlds.

Development

  • Hot Reloading
  • Resourse hashing to prevent caching probilem while testing
  • ES6 and JSX support
  • CSS loader

Production

  • Separate css and js minified bundle
  • React JS linked from CDN to use cached packages

About

A Starter template for React JS using webpack adapted for developer and production builds.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published