refactor: use vite public dir

This commit is contained in:
ayo 2026-04-02 12:12:39 +02:00
parent e006c29d2b
commit 20bed545e1
4 changed files with 4 additions and 3 deletions

View file

@ -8,8 +8,7 @@
<meta name="Description" content="Play Minesweeper online for FREE!" />
<title>Minesweeper</title>
<link rel="stylesheet" href="main.bundle.css" />
<link rel="shortcut icon" type="image/png" href="assets/favicon.ico" />
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
</head>
<body>
<div id="body-wrapper">

View file

@ -14,6 +14,8 @@
"dev": "vite",
"start": "vite",
"build": "vite build",
"preview": "vite preview",
"build:preview": "npm run build && npm run preview",
"prepare": "husky"
},
"license": "BSD-2-Clause",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -1,6 +1,6 @@
import './index.css';
import './modules/loading/loading.css';
import './assets/favicon.ico';
import '../public/favicon.ico';
import Minesweeper from './minesweeper.js';
const myMinesweeper = new Minesweeper('app');