Updated SVG generation.

This commit is contained in:
Mike Cao 2025-05-26 23:13:15 -07:00
parent 4552256930
commit 18eceee4c4
4 changed files with 551 additions and 1400 deletions

View file

@ -20,6 +20,7 @@
"start-env": "node scripts/start-env.js",
"start-server": "node server.js",
"build-app": "next build",
"build-icons": "svgr ./src/assets --out-dir src/components/svg --typescript",
"build-components": "rollup -c rollup.components.config.mjs",
"build-tracker": "rollup -c rollup.tracker.config.mjs",
"build-db": "npm-run-all copy-db-files build-db-client",
@ -78,7 +79,7 @@
"@react-spring/web": "^9.7.3",
"@svgr/cli": "^8.1.0",
"@tanstack/react-query": "^5.28.6",
"@umami/react-zen": "^0.118.0",
"@umami/react-zen": "^0.119.0",
"@umami/redis-client": "^0.27.0",
"bcryptjs": "^2.4.3",
"chalk": "^4.1.1",
@ -137,8 +138,6 @@
"@rollup/plugin-node-resolve": "^15.2.0",
"@rollup/plugin-replace": "^5.0.2",
"@rollup/plugin-terser": "^0.4.4",
"@svgr/rollup": "^8.1.0",
"@svgr/webpack": "^8.1.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.13.4",
"@types/react": "^19.0.8",

1943
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -9,7 +9,6 @@ import del from 'rollup-plugin-delete';
import nodeExternals from 'rollup-plugin-node-externals';
import esbuild from 'rollup-plugin-esbuild';
import dts from 'rollup-plugin-dts';
import svgr from '@svgr/rollup';
const md5 = str => crypto.createHash('md5').update(str).digest('hex');
@ -53,7 +52,6 @@ const jsBundle = {
},
},
}),
svgr({ icon: true }),
nodeExternals(),
json(),
alias(aliasConfig),

View file

@ -5,7 +5,6 @@ const SvgLogo = (props: SVGProps<SVGSVGElement>) => (
xmlns="http://www.w3.org/2000/svg"
width={20}
height={20}
fill="currentColor"
viewBox="0 0 428 389.11"
{...props}
>