Socket
Socket
Sign inDemoInstall

vite-plugin-router-warn

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vite-plugin-router-warn

A vite plugin in development environment that remove dynamic router refresh warning: No match found for location with path


Version published
Weekly downloads
578
decreased by-14.37%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

vite-plugin-router-warn

A vite plugin in development environment that remove dynamic router refresh warning: No match found for location with path

NPM version

🤔 Origin

Solve issues related to https://github.com/vuejs/router/issues/359
When the author provides the relevant configuration to turn off the warning, vite-plugin-router-warn will no longer be needed.
Only enabled in the development environment, only processes vue-router files and only runs once when the service is started or restarted, with extremely low performance consumption.

vuerouter

🦾 Configurable

configurationmustmeaningtypeexample
txtNoexport the modified vue-router file to the project root directory. default false. when true, router.txt is exported. Of course, you can customize the export file name by filling in the string (turn on when comparing files)booleanstringremoveNoMatch({ txt: true })

📦 Install

# npm
npm install vite-plugin-router-warn -D

# or yarn
yarn add vite-plugin-router-warn -D

# or pnpm
pnpm add vite-plugin-router-warn -D

📕 Usage

// vite.config.ts

import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import removeNoMatch from "vite-plugin-router-warn";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(), removeNoMatch()]
});

License

MIT © 2023-present, xiaoxian521

Keywords

FAQs

Last updated on 05 Dec 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc