Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Vite plugin forhttps://github.com/aidenybai/react-scan

License

NotificationsYou must be signed in to change notification settings

Rajaniraiyn/vite-plugin-react-scan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A zero-configuration Vite plugin that seamlessly integratesreact-scan into your React development workflow.

Features

  • 🚀 Automatic integration of react-scan
  • 🔧 Dev server only injection
  • 🌐 Uses unpkg CDN for script loading
  • 💨 Minimal setup required
  • 🔥 Works with HMR

Installation

Install the plugin using your preferred package manager:

npm install vite-plugin-react-scan -D# oryarn add vite-plugin-react-scan -D# orpnpm add vite-plugin-react-scan -D# orbun add vite-plugin-react-scan -D

Usage

Add the plugin to yourvite.config.js orvite.config.ts:

import{defineConfig}from'vite';importreactfrom'@vitejs/react';importreactScanfrom'vite-plugin-react-scan';exportdefaultdefineConfig({plugins:[react(),reactScan()]});

How It Works

  • Automatically injects the react-scan script during development
  • Only active during the development server
  • Adds the script to the body of your HTML
  • No manual configuration needed

Requirements

  • Vite
  • React

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


[8]ページ先頭

©2009-2025 Movatter.jp