# vite-plugin-check-scoped

> A vite plugin for check style scoped

Latest version **0.0.4** (published 2023-08-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install vite-plugin-check-scoped
pnpm add vite-plugin-check-scoped
yarn add vite-plugin-check-scoped
bun add vite-plugin-check-scoped
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2023-08-10 |
| First published | 2023-08-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=v14.21.3 |
| Dependencies | 1 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | liuseen-l |
| Maintainers | codemanl |
| Keywords | vite, vite-plugin, scoped, vite-plugin-check-scoped |

## Links

- npm: https://www.npmjs.com/package/vite-plugin-check-scoped
- Repository: https://github.com/liuseen-l/vite-plugin-check-scoped
- Homepage: https://github.com/liuseen-l/vite-plugin-check-scoped#readme
- Issues: https://github.com/liuseen-l/vite-plugin-check-scoped/issues
- npm.io page: https://npm.io/package/vite-plugin-check-scoped

## Dependencies (1)

- [minimatch](https://npm.io/package/minimatch.md) ^9.0.3

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2023-08-10
- 0.0.4-beta.0 — 2023-08-08
- 0.0.3 — 2023-08-08
- 0.0.1 — 2023-08-08

## README

# vite-plugin-check-scoped

[![NPM version](https://img.shields.io/npm/v/vite-plugin-check-scoped?color=a1b858&label=)](https://www.npmjs.com/package/vite-plugin-check-scoped)

Check that your style code is non-scoed in the development environment.


## Why?

When we develop a project, we may not add scoped tags to the style due to negligence, which makes it difficult to change when the later project is large, especially when the team collaborates, and it is more difficult to correct, so in order to avoid this problem, the code is checked in the development environment.

## 📦 Install

Now this plugin supports both Vite 2.x and 3.x. Just install it:

```bash
pnpm add -D vite-plugin-check-scoped
```

## 🦄 Usage

Let's use a VUE project as an example

```typescript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { CheckScopedPlugin } from 'vite-plugin-check-scoped'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(), CheckScopedPlugin({
    include: ['**/*.vue'],
    exclude: ['./src/components/HelloWorld.vue'],
  })],
})

```
## 📄 License

[MIT License](https://github.com/vite-plugins/vite-plugin-clt-svr/blob/main/LICENSE) © 2019-PRESENT [LiuSeen](https://github.com/liuseen-l)

---
_Source: https://npm.io/package/vite-plugin-check-scoped · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
