npm start
npm run build
- Ensure there are no TypeScript errors, otherwise complilation will be aborted.
- Build files will be placed in the "dist" folder by default.
- To change build folder, add this line to vite.config.ts
defineConfig
:
build: {
outDir: './build-directory'
},
npm run preview