Skip to content

Commit

Permalink
Update dependencies (#68)
Browse files Browse the repository at this point in the history
* Remove 'vite-imagetools' plugin

* Add 'icp.webp' file in place of vite-imagetools transform
  • Loading branch information
rvanasa committed Jan 5, 2024
1 parent 5d31fd8 commit be83fa2
Show file tree
Hide file tree
Showing 8 changed files with 274 additions and 880 deletions.
462 changes: 267 additions & 195 deletions Cargo.lock

Large diffs are not rendered by default.

686 changes: 6 additions & 680 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"sass": "^1.64.2",
"tailwindcss": "^3.3.3",
"vite": "^4.4.12",
"vite-imagetools": "^4.0.19",
"vitest": "^0.34.1",
"web-vitals": "^3.4.0"
},
Expand Down
Binary file removed src/assets/dfinity.png
Binary file not shown.
Binary file removed src/assets/icp.png
Binary file not shown.
Binary file added src/assets/icp.webp
Binary file not shown.
3 changes: 1 addition & 2 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { ReactNode } from 'react';
import { Link, useLocation } from 'react-router-dom';
import tw from 'twin.macro';
// @ts-ignore
import icpLogo from '../assets/icp.png?webp&height=48';
import icpLogo from '../assets/icp.webp';
import { useBreakpoint } from '../hooks/utils/useBreakpoint';
import useIdentity from '../services/userService';
import LoginArea from './LoginArea';
Expand Down
2 changes: 0 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import react from '@vitejs/plugin-react';
import { spawnSync } from 'child_process';
import { existsSync, readFileSync } from 'fs';
import { join } from 'path';
import { imagetools } from 'vite-imagetools';

const localNetwork = 'local';
const network = process.env['DFX_NETWORK'] || localNetwork;
Expand Down Expand Up @@ -44,7 +43,6 @@ export default defineConfig({
ignore: ['\x00commonjsHelpers.js'], // Fix build error (ben-rogerson/babel-plugin-twin#9)
},
}),
imagetools(),
],
define: {
'import.meta.env.DFX_NETWORK': JSON.stringify(process.env.DFX_NETWORK),
Expand Down

0 comments on commit be83fa2

Please sign in to comment.