Based on TypeScript library starter, this is a self-use version record, upgrade dependencies to the latest version. Add webpack-dev-middleware local service preview
git clone https://github.com/zhaohuanyuu/ts-lib-starter YOURFOLDERNAME
cd YOURFOLDERNAME
Then change the package.json and rollup.config.ts modify "your-lib-name"
to a custom name
# watch build
$ npm start
# production bundle
$ npm build
# preview on local server
$ npm preview