Boilerplate to create React.js apps with Vite
This boilerplate is ready to be used by devs who want to start a new project using React.js, TypeScript and Jest with Vite.
import { ReactComponent as MyIcon } from '@/assets/icon-path.svg'
;src
directory;@
as src
directory like above;Install the dependencies:
yarn install or npm i
Run dev server:
yarn dev or npm run dev
You can run type-checking in watch mode in another terminal, if you may:
yarn type-check --watch
yarn test
To generate the production version, you can run:
yarn build or npm build
All files you have to deploy will be located at the dist
directory.
To check if everything will be ok in production before the deployment, you can run this command after yarn build
:
yarn preview or npm preview