Skip to content

Commit ef1638b

Browse files
authored
fix(playground): public image import (#12)
1 parent ce8349e commit ef1638b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/playground/src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import './style.css';
2+
import viteLogo from '../public/vite.svg';
23
import { setupCounter } from './counter.ts';
34
import typescriptLogo from './typescript.svg';
45
import { isCallable } from '@coldrun/monorepo-typescript-shared';
56

67
document.querySelector<HTMLDivElement>('#app')!.innerHTML = `
78
<div>
89
<a href="https://vitejs.dev" target="_blank">
9-
<img src="/vite.svg" class="logo" alt="Vite logo" />
10+
<img src="${viteLogo}" class="logo" alt="Vite logo" />
1011
</a>
1112
<a href="https://www.typescriptlang.org/" target="_blank">
1213
<img src="${typescriptLogo}" class="logo vanilla" alt="TypeScript logo" />

packages/playground/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defineConfig } from 'vite';
22

33
const { BASE_URL } = process.env;
4+
45
export default defineConfig({
56
base: BASE_URL || '/',
67
});

0 commit comments

Comments
 (0)