1
Fork 0
mirror of https://github.com/RGBCube/cinny synced 2025-07-30 16:37:46 +00:00

Vite plugin to add svg as inline data (#1072)

* add vite plugin to add svg as inline data

* Add node types package
This commit is contained in:
Ajay Bura 2023-01-15 09:52:58 +05:30 committed by GitHub
parent 9a34daa2bc
commit 38bbc1c6f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 42 additions and 7 deletions

View file

@ -2,6 +2,7 @@ import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { wasm } from '@rollup/plugin-wasm';
import { viteStaticCopy } from 'vite-plugin-static-copy';
import { svgLoader } from './viteSvgLoader';
const copyFiles = {
targets: [
@ -33,6 +34,7 @@ export default defineConfig({
},
plugins: [
viteStaticCopy(copyFiles),
svgLoader(),
wasm(),
react(),
],