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

Migrate codebase to Vite #30

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Migrate codebase to Vite #30

wants to merge 1 commit into from

Conversation

dtinth
Copy link
Owner

@dtinth dtinth commented May 16, 2024

This pull request migrates the codebase from react-scripts to Vite, enhancing the build and development process.

  • Updates package.json: Replaces react-scripts with vite and vite-plugin-react in dependencies. Modifies start, build, and test scripts to use Vite commands.
  • Adds vite.config.js: Introduces a new configuration file for Vite, setting up React and TypeScript support, and specifying the build output directory and public directory.
  • Modifies tsconfig.json: Adjusts the TypeScript configuration for compatibility with Vite, changing the JSX handling to "react".
  • Updates src/index.tsx: Alters the entry file to comply with Vite's conventions, including changes to how the root component is rendered.
  • Adjusts public/index.html: Updates the HTML template to include Vite's development script when in development mode.

For more details, open the Copilot Workspace session.

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