Skip to content

Project template for react app with typescript, CSS modules and hot module reloading (HMR)

License

Notifications You must be signed in to change notification settings

svenwiegand/react-typescript-cssmodules-starter

Repository files navigation

React Webpack Typescript Starter

Minimal starter kit with hot module replacement (HMR) for rapid development and CSS Modules. Bbased on Viktor Persson's react-webpack-typescript-starter.

Installation

  1. Clone/download repo
  2. npm install (I prefer yarn which works fine as well)

Usage

Development

npm start

  • Build app continously (HMR enabled)
  • App served @ http://localhost:3000

Production

npm run start-prod

  • Build app once (HMR disabled)
  • App served @ http://localhost:3000

All commands

Command Description
npm run start Alias for npm run start-dev
npm run start-dev Build app continuously (HMR enabled) and serve @ http://localhost:3000
npm run start-prod Build app once (HMR disabled) and serve @ http://localhost:3000
npm run build Build app to /dist
npm run test Run tests continuously watching for changes
npm run test-coverage Run tests once with coverage
npm run lint Run TypeScript linter
npm run start (alias of npm run start-dev)
npm run css-types Builds TypeScript type declarations for CSS modules

See also

About

Project template for react app with typescript, CSS modules and hot module reloading (HMR)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published