Skip to content

Template for a really quick creation of React project with Webpack build

Notifications You must be signed in to change notification settings

nicolasventer/WebpackReactTemplate

Repository files navigation

Webpack React Template

This is a template for a really quick creation of React project with Webpack build.
This should be used with Visual Studio Code and the Live Server extension.

Installation

npm install -g -D webpack webpack-cli
git clone git@github.com:nicolasventer/WebpackReactTemplate.git
cd WebpackReactTemplate
npm install

Watch mode installation

npm install -g nodemon nodemon-webpack-plugin

Demo

Demo

Usage

Build: (make a pre-check with tsc)

npm run build

Rebuild: (no pre-check, delete dist before build)

npm run rebuild

Watch: (no pre-check, no delete, watch for changes)

npm run watch