Use relitive path for loading content (electron fix).
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
This commit is contained in:
parent
a80b266fc7
commit
5242650ccd
10
index.html
10
index.html
@ -2,17 +2,17 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<link rel="icon" href="./favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Web site created using create-react-app"
|
||||
/>
|
||||
<link rel="apple-touch-icon" href="/logo192.png" />
|
||||
<link rel="manifest" href="/manifest.json" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" preload />
|
||||
<link rel="stylesheet" href="/preload.css" preload />
|
||||
<link rel="apple-touch-icon" href="./logo192.png" />
|
||||
<link rel="manifest" href="./manifest.json" />
|
||||
<link rel="stylesheet" href="./fonts/fonts.css" preload />
|
||||
<link rel="stylesheet" href="./preload.css" preload />
|
||||
<script type="module" src="/src/index.jsx"></script>
|
||||
<title>Farm Control</title>
|
||||
</head>
|
||||
|
||||
@ -11,7 +11,7 @@ const __filename = fileURLToPath(import.meta.url)
|
||||
const __dirname = path.dirname(__filename)
|
||||
|
||||
export default defineConfig({
|
||||
base: '/',
|
||||
base: './', // Required for Electron file:// protocol - absolute paths fail
|
||||
resolve: {
|
||||
alias: {
|
||||
three: path.resolve(__dirname, 'node_modules/three')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user