tsx-pack
website created with https://github.com/MananTank/tsx-pack
Development
If you are working on Home/index.tsx page:
npm run dev src/pages/Home/index.tsx
With this, Everytime you make a change inside the src folder, foo.tsx will rerun and generated the html file
Production Build
Build All Pages
make sure all the pages are mentioned in build.ts file that you want to generate, and then run this command:
npm run build-all
Build A Particular Page
If you only want to build a particular page, For example if you want to build the home page only:
npm run build src/pages/Home/index.tsx