refactor: use vite public dir
This commit is contained in:
parent
e006c29d2b
commit
20bed545e1
4 changed files with 4 additions and 3 deletions
|
|
@ -8,8 +8,7 @@
|
||||||
<meta name="Description" content="Play Minesweeper online for FREE!" />
|
<meta name="Description" content="Play Minesweeper online for FREE!" />
|
||||||
<title>Minesweeper</title>
|
<title>Minesweeper</title>
|
||||||
|
|
||||||
<link rel="stylesheet" href="main.bundle.css" />
|
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
|
||||||
<link rel="shortcut icon" type="image/png" href="assets/favicon.ico" />
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="body-wrapper">
|
<div id="body-wrapper">
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
"preview": "vite preview",
|
||||||
|
"build:preview": "npm run build && npm run preview",
|
||||||
"prepare": "husky"
|
"prepare": "husky"
|
||||||
},
|
},
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
|
|
@ -1,6 +1,6 @@
|
||||||
import './index.css';
|
import './index.css';
|
||||||
import './modules/loading/loading.css';
|
import './modules/loading/loading.css';
|
||||||
import './assets/favicon.ico';
|
import '../public/favicon.ico';
|
||||||
import Minesweeper from './minesweeper.js';
|
import Minesweeper from './minesweeper.js';
|
||||||
|
|
||||||
const myMinesweeper = new Minesweeper('app');
|
const myMinesweeper = new Minesweeper('app');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue