Simple starter pack with Typescript
, Tailwind
and Vite
.
Vite helps to bundle very quickly vanilla Webapp
pages
- Clone this repo
- Install dependencies
yarn
- Enjoy it with Vite
You can do like here.
Copy all your dist/
files to public/
and serve with backend.
Also you can create feature as individual component.
- Create component and bundle
- Copy to backend
public/
directory likepublic/feature
- Enable component directory in
Express
for serve static file
Example:
app.use('feature', express.static('feature'));