/react-webpack-ts-tailwind-boilerplate

Minimal boilerplate with hot module replacement (HMR) for rapid development.

Primary LanguageTypeScriptMIT LicenseMIT

React, Webpack, TypeScript, TailwindCSS Boilerplate

Minimal boilerplate with hot module replacement (HMR) for rapid development.

Installation

I strongly recommend the use of Yarn. If you do not have yarn, install it using npm install yarn --global

  1. Clone/download repo
  2. yarn install

Usage

Development

yarn start

  • Build app continuously (HMR enabled)
  • App served @ http://localhost:8080

Production

yarn build

  • Build app once (HMR disabled) to /dist/

All commands

Command Description
yarn start Build app continuously (HMR enabled) and serve @ http://localhost:8080
yarn build Build app to /dist/
yarn lint Run linter
yarn lint --fix Run linter and fix issues