├── .changeset ├── README.md └── config.json ├── .github └── workflows │ └── release.yml ├── .gitignore ├── .husky └── pre-commit ├── .lintstagedrc ├── .npmrc ├── .prettierrc.cjs ├── LICENSE ├── README.en.md ├── README.md ├── eslint.config.js ├── package.json ├── packages ├── core │ ├── CHANGELOG.md │ ├── README.md │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ ├── compress.ts │ │ ├── constants.ts │ │ ├── index.ts │ │ ├── sprites.ts │ │ ├── transform.ts │ │ ├── types.ts │ │ └── utils.ts │ └── tsconfig.json └── example │ ├── .gitignore │ ├── README.md │ ├── index.html │ ├── index_2.html │ ├── package.json │ ├── public │ └── vite.svg │ ├── src │ ├── App.vue │ ├── assets │ │ ├── base64.png │ │ ├── css.jpg │ │ ├── html.jpg │ │ ├── icon.svg │ │ ├── icons │ │ │ ├── 1.png │ │ │ ├── 2.png │ │ │ ├── 3.png │ │ │ ├── 4.png │ │ │ ├── 5.png │ │ │ └── icons-sprites.png │ │ ├── image.png │ │ ├── import.jpg │ │ ├── index.scss │ │ ├── large-image.svg │ │ └── vue.svg │ ├── main.js │ ├── pages │ │ └── test.html │ └── style.css │ ├── tsconfig.json │ └── vite.config.ts ├── pnpm-lock.yaml ├── pnpm-workspace.yaml └── tsconfig.json /.changeset/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/.changeset/README.md -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/.changeset/config.json -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | .vscode -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.lintstagedrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/.lintstagedrc -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/.npmrc -------------------------------------------------------------------------------- /.prettierrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/.prettierrc.cjs -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/LICENSE -------------------------------------------------------------------------------- /README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/README.en.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/README.md -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/eslint.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/package.json -------------------------------------------------------------------------------- /packages/core/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/core/CHANGELOG.md -------------------------------------------------------------------------------- /packages/core/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/core/README.md -------------------------------------------------------------------------------- /packages/core/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/core/package.json -------------------------------------------------------------------------------- /packages/core/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/core/rollup.config.js -------------------------------------------------------------------------------- /packages/core/src/compress.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/core/src/compress.ts -------------------------------------------------------------------------------- /packages/core/src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/core/src/constants.ts -------------------------------------------------------------------------------- /packages/core/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/core/src/index.ts -------------------------------------------------------------------------------- /packages/core/src/sprites.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/core/src/sprites.ts -------------------------------------------------------------------------------- /packages/core/src/transform.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/core/src/transform.ts -------------------------------------------------------------------------------- /packages/core/src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/core/src/types.ts -------------------------------------------------------------------------------- /packages/core/src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/core/src/utils.ts -------------------------------------------------------------------------------- /packages/core/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/core/tsconfig.json -------------------------------------------------------------------------------- /packages/example/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/.gitignore -------------------------------------------------------------------------------- /packages/example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/README.md -------------------------------------------------------------------------------- /packages/example/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/index.html -------------------------------------------------------------------------------- /packages/example/index_2.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/index_2.html -------------------------------------------------------------------------------- /packages/example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/package.json -------------------------------------------------------------------------------- /packages/example/public/vite.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/public/vite.svg -------------------------------------------------------------------------------- /packages/example/src/App.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/App.vue -------------------------------------------------------------------------------- /packages/example/src/assets/base64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/assets/base64.png -------------------------------------------------------------------------------- /packages/example/src/assets/css.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/assets/css.jpg -------------------------------------------------------------------------------- /packages/example/src/assets/html.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/assets/html.jpg -------------------------------------------------------------------------------- /packages/example/src/assets/icon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/assets/icon.svg -------------------------------------------------------------------------------- /packages/example/src/assets/icons/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/assets/icons/1.png -------------------------------------------------------------------------------- /packages/example/src/assets/icons/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/assets/icons/2.png -------------------------------------------------------------------------------- /packages/example/src/assets/icons/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/assets/icons/3.png -------------------------------------------------------------------------------- /packages/example/src/assets/icons/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/assets/icons/4.png -------------------------------------------------------------------------------- /packages/example/src/assets/icons/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/assets/icons/5.png -------------------------------------------------------------------------------- /packages/example/src/assets/icons/icons-sprites.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/assets/icons/icons-sprites.png -------------------------------------------------------------------------------- /packages/example/src/assets/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/assets/image.png -------------------------------------------------------------------------------- /packages/example/src/assets/import.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/assets/import.jpg -------------------------------------------------------------------------------- /packages/example/src/assets/index.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/assets/index.scss -------------------------------------------------------------------------------- /packages/example/src/assets/large-image.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/assets/large-image.svg -------------------------------------------------------------------------------- /packages/example/src/assets/vue.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/assets/vue.svg -------------------------------------------------------------------------------- /packages/example/src/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/main.js -------------------------------------------------------------------------------- /packages/example/src/pages/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/pages/test.html -------------------------------------------------------------------------------- /packages/example/src/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/src/style.css -------------------------------------------------------------------------------- /packages/example/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/tsconfig.json -------------------------------------------------------------------------------- /packages/example/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/packages/example/vite.config.ts -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/pnpm-workspace.yaml -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/illusionGD/vite-plugin-image-tools/HEAD/tsconfig.json --------------------------------------------------------------------------------