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

Appearance settings

wChenonly/vite-plugin-find-image-duplicates

Open more actions menu

Repository files navigation

vite-plugin-find-image-duplicates

Find if there are duplicate images in your project when building it

NPM version NPM Downloads

English | 简体中文

Configuration

configuration item name must meaning type example
imagePath No The image path to be found, default src/assets/images Array<string> findImageDuplicates({ imagePath: ["src/assets/images", ...] })
imageType No The type of image you need to find, default'.jpg', '.jpeg', '.png', '.gif', '.bmp', '.svg', '.webp' Array<string> 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

npm install vite-plugin-find-image-duplicates -D
pnpm add vite-plugin-find-image-duplicates -D

Usage

  • vite.config.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

About

Find out if there are duplicate images in the project

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.