https://github.com/wChenonly/vite-plugin-find-image-duplicates
Find out if there are duplicate images in the project
https://github.com/wChenonly/vite-plugin-find-image-duplicates
Last synced: 8 days ago
JSON representation
Find out if there are duplicate images in the project
- Host: GitHub
- URL: https://github.com/wChenonly/vite-plugin-find-image-duplicates
- Owner: wChenonly
- License: mit
- Created: 2023-03-15T01:56:35.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-24T04:39:36.000Z (over 1 year ago)
- Last Synced: 2025-04-09T14:37:06.407Z (11 days ago)
- Language: TypeScript
- Size: 370 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- fucking-awesome-vite - vite-plugin-find-image-duplicates - Find if there are duplicate images in your project when building it. (Plugins / Framework-agnostic Plugins)
- awesome-vite - vite-plugin-find-image-duplicates - Find if there are duplicate images in your project when building it. (Plugins / Framework-agnostic Plugins)
README
vite-plugin-find-image-duplicates
Find if there are duplicate images in your project when building it
English | [简体中文](./README.zh_CN.md)
## Configuration
| **configuration item name** | **must** | **meaning** | **type** | **example** |
| --------------------------- | -------- | ----------------------------------------------------------------------------------------------------- | --------------- | ---------------------------------------------------------------------------------------------------- |
| `imagePath` | No | The image path to be found, default `src/assets/images` | `Array` | `findImageDuplicates({ imagePath: ["src/assets/images", ...] })` |
| `imageType` | No | The type of image you need to find, default`'.jpg', '.jpeg', '.png', '.gif', '.bmp', '.svg', '.webp'` | `Array` | `findImageDuplicates({ imageType: ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.svg', '.webp',...] })` |
| `exitOnDuplicate` | No | Whether to exit the process after finding the duplicate picture, by default `ture` Exit the process | `Boolean` | `findImageDuplicates({ exitOnDuplicate:false })` |## Install
```bash
npm install vite-plugin-find-image-duplicates -D
pnpm add vite-plugin-find-image-duplicates -D
```## Usage
- vite.config.ts
```ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import findImageDuplicates from 'vite-plugin-find-image-duplicates'export default defineConfig({
plugins: [vue(), findImageDuplicates({ imagePath: ['src/assets/images/recur'], exitOnDuplicate: false })]
})
```## License
[MIT © wChenonly-latest](./LICENSE)