tsx-app
v1.2.0
Published
clear
Downloads
5
Maintainers
Readme
React Webpack Typescript Starter
Minimal starter with hot module replacement (HMR) for rapid development.
- React (17.x)
- Webpack (5.x)
- Typescript (4.x)
- Hot Module Replacement (HMR)
- light Production build script (Webpack) with HtmlWebpackPlugin & BundleAnalyzerPlugin.
Installation
- Clone/download repo
yarn install
(or justnpx tsx-app <your-app-name>
for npm
All commands
Command | Description
---|---
clean
|rm dist/bundle.js
build-dev
|webpack --mode development
build-prod
|webpack --mode production
start
|webpack serve --hot --mode development
Note: replace yarn
with npm
in package.json
if you use npm.