Implemented Project Hotloading Code
This commit is contained in:
parent
61ddb6584d
commit
1047e8ee51
@ -223,7 +223,7 @@ const AlertSoundNode = ({ id, data }) => {
|
|||||||
|
|
||||||
<div className="borealis-node-content">
|
<div className="borealis-node-content">
|
||||||
<div style={{ marginBottom: "8px", fontSize: "9px", color: "#ccc" }}>
|
<div style={{ marginBottom: "8px", fontSize: "9px", color: "#ccc" }}>
|
||||||
Play a sound when input equals "1"
|
Play a sound alert when input is "1"
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label style={{ fontSize: "9px", display: "block", marginBottom: "4px" }}>
|
<label style={{ fontSize: "9px", display: "block", marginBottom: "4px" }}>
|
||||||
|
@ -5,13 +5,22 @@ import path from 'path';
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
|
server: {
|
||||||
|
open: true,
|
||||||
|
proxy: {
|
||||||
|
'/api': 'http://localhost:5000',
|
||||||
|
'/socket.io': {
|
||||||
|
target: 'ws://localhost:5000',
|
||||||
|
ws: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
build: {
|
build: {
|
||||||
outDir: 'build',
|
outDir: 'build',
|
||||||
emptyOutDir: true
|
emptyOutDir: true
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: { '@': path.resolve(__dirname, 'src') },
|
||||||
'@': path.resolve(__dirname, 'src')
|
extensions: ['.js', '.jsx', '.ts', '.tsx']
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -133,10 +133,11 @@ switch ($choice) {
|
|||||||
Pop-Location
|
Pop-Location
|
||||||
}
|
}
|
||||||
|
|
||||||
# Build with Vite
|
# ---------------------- Dev-mode Vite (HMR) ----------------------
|
||||||
Run-Step "Vite Web Frontend: Build" {
|
Run-Step "Vite Web Frontend: Start Dev Server" {
|
||||||
Push-Location $webUIDestination
|
Push-Location $webUIDestination
|
||||||
& $npmCmd run build --silent
|
# Launch Vite in watch/HMR mode in a new process
|
||||||
|
Start-Process -NoNewWindow -FilePath $npmCmd -ArgumentList @("run", "dev")
|
||||||
Pop-Location
|
Pop-Location
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user