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

25 lines
512 B
JavaScript
Raw Normal View History

2024-05-31 14:12:54 +00:00
import { defineConfig } from "vite";
2024-06-01 07:12:01 +00:00
import svgr from "vite-plugin-svgr";
2024-05-31 14:12:54 +00:00
export default defineConfig({
2024-10-07 13:23:39 +00:00
base: "/tic-tac-toe/",
2024-05-31 14:12:54 +00:00
esbuild: {
jsxInject: `import React from 'react'`,
},
2024-06-01 07:12:01 +00:00
plugins: [
svgr({
svgrOptions: {
plugins: ["@svgr/plugin-svgo", "@svgr/plugin-jsx"],
replaceAttrValues: {
"#31C3BD": "currentColor",
"#F2B137": "currentColor",
},
svgoConfig: {
plugins: ["removeDimensions"],
},
},
}),
],
2024-05-31 14:12:54 +00:00
});