Compilar a paths relativos

This commit is contained in:
Nulo 2021-06-28 19:44:16 +00:00
parent 391d3d78fb
commit da92f24ca6
2 changed files with 8 additions and 8 deletions

View file

@ -10,13 +10,13 @@
<body>
<div style="display: none">
<!-- Cargar imágenes -->
<img id="img-boton-jugar" src="/src/assets/boton_jugar.png">
<img id="img-vereda" src="/src/assets/piso.png">
<img id="img-fondo" src="/src/assets/fondo.png">
<img id="img-larreta" src="/src/assets/larreta.png">
<img id="img-jugadorx" src="/src/assets/eli.png">
<img id="img-semilla" src="/src/assets/semilla.png">
<img id="img-arbol" src="/src/assets/arbol.png">
<img id="img-boton-jugar" src="./src/assets/boton_jugar.png">
<img id="img-vereda" src="./src/assets/piso.png">
<img id="img-fondo" src="./src/assets/fondo.png">
<img id="img-larreta" src="./src/assets/larreta.png">
<img id="img-jugadorx" src="./src/assets/eli.png">
<img id="img-semilla" src="./src/assets/semilla.png">
<img id="img-arbol" src="./src/assets/arbol.png">
</div>
<canvas id="juego" width="1280" height="720"></canvas>
<script type="module" src="/src/main.ts"></script>

View file

@ -3,7 +3,7 @@
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"build": "vite build --base=./",
"serve": "vite preview"
},
"devDependencies": {