Hadeed Ahmad
4e054d8e75
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
24 lines
512 B
JavaScript
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"],
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
});
|