Use relative paths for assets

This commit is contained in:
James Lyne 2021-05-16 00:08:37 +01:00
parent c2b4218023
commit cd665fa5f4
2 changed files with 2 additions and 1 deletions

View File

@ -171,7 +171,7 @@
</noscript> </noscript>
<div id="mcmap" class="dynmap"></div> <div id="mcmap" class="dynmap"></div>
<script src="/standalone/config.js"></script> <script src="./standalone/config.js"></script>
<script type="module" src="/src/main.ts"></script> <script type="module" src="/src/main.ts"></script>
</body> </body>
</html> </html>

View File

@ -7,6 +7,7 @@ export default defineConfig({
plugins: [vue(), svgSpritePlugin({ plugins: [vue(), svgSpritePlugin({
symbolId: (name) => name, symbolId: (name) => name,
})], })],
base: './',
server: { server: {
port: 8080 port: 8080
}, },