1
Fork 0
This repository has been archived on 2024-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
tic-tac-toe/vite.config.js
Hadeed Ahmad 4e054d8e75
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add workflow
2024-10-07 18:28:55 +05:00

24 lines
512 B
JavaScript

import { defineConfig } from "vite";
import svgr from "vite-plugin-svgr";
export default defineConfig({
base: "/tic-tac-toe/",
esbuild: {
jsxInject: `import React from 'react'`,
},
plugins: [
svgr({
svgrOptions: {
plugins: ["@svgr/plugin-svgo", "@svgr/plugin-jsx"],
replaceAttrValues: {
"#31C3BD": "currentColor",
"#F2B137": "currentColor",
},
svgoConfig: {
plugins: ["removeDimensions"],
},
},
}),
],
});