Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: replace react-scripts with vite #37

Merged
merged 10 commits into from
Aug 1, 2021
Merged

feat: replace react-scripts with vite #37

merged 10 commits into from
Aug 1, 2021

Conversation

trivikr
Copy link
Contributor

@trivikr trivikr commented Aug 1, 2021

Issue

N/A

Description

Replaces create-react-app with vite to use fast development builds using esbuild.

Before
$ yarn start
...
takes 10+ seconds

$ time yarn build
Creating an optimized production build...
...
yarn build  71.85s user 7.81s system 179% cpu 44.387 total
After
$ yarn start
  vite v2.4.4 dev server running at:

  > Local: http://localhost:3000/
  > Network: use `--host` to expose

  ready in 1255ms.

$ time yarn build
vite v2.4.4 building for production...
...
yarn build  32.71s user 1.98s system 202% cpu 17.145 total

Testing

Local testing for the following commands:

  • yarn start
  • yarn build
  • yarn serve

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@trivikr trivikr changed the title [WIP] feat: replace react-scripts with vite feat: replace react-scripts with vite Aug 1, 2021
@trivikr trivikr marked this pull request as ready for review August 1, 2021 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant