Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

My clean structure to start react projects with the smart webpack tool.

License

Notifications You must be signed in to change notification settings

jancassio/reactapp-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React App Boilerplate

This structure provide a very simple interface to start projects with react (or not). If you don't want to waste your time understanding other react's boilerplate projects, you should consider check out this one.

I did this to save some time creating automated structures for front-end projects, so I did it to be simple, flexible and ready to develop.

Contents

Checkout the pre-defined features and the incoming features

Features

  • ES6 ready
  • Modular based structure
  • Development server
    • Hot reload
  • Webpack stats
  • Optimize for production
    • Chunk hashed files
    • Update only changed chunks
    • Automatic inject CSS and JS on index

Installing

I suppose you have npm installed, so:

  1. Clone this project to your computer git clone https://github.com/jancassio/reactapp-boilerplate.git

  2. Install dependencies defined at package.json file with: npm install

Running

Development

At command line, simple do npm start. this will create an web server (powered by webpack) at localhost:8080.

Profiling

This project is optimized to generate chunk pieces of javascript, to analyze that use npm run stats, this will generate a file named stats.json at project root, so you can go to webpack analyze tool to inspect your project's output.

Building

Simple do npm run build, this will generate a folder named build at project root, the content inside this folder, can be deployed in production.

LICENSE

MIT

About

My clean structure to start react projects with the smart webpack tool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published