Minimal boilerplate for React, Webpack, and TypeScript.
MIT License
This repository is a minimal boilerplate repo for React, WebPack and TypeScript. It comes with react-router-dom
and modular SCSS support set up, but does not come with Redux or any other React state management library.
The src
folder contains a basic example app to get started.
npm install
to install dependencies.npm run build-dev
to build the app in development
mode.npm run build-prod
to build in production
mode. Note that the prod build extracts the transpiled CSS into dist/main.css
using mini-css-extract-plugin
, whereas the dev build bundles it into the JS file.npm run start
to start the dev-server.Debugging settings are included for VS Code.
Linting settings are also included for VS Code; you'll need the ESLint extension for VS Code.
If you don't use VS Code for your development, you can safely delete the .vscode
folder.