Skip to content

Commit 75f252a

Browse files
committed
local dev server vite path changed
1 parent 0b5f5a0 commit 75f252a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

preview/global/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
}
1414
</style>
1515

16-
<script src="./p5.js"></script>
16+
<script src="/p5.js"></script>
1717
</head>
1818
<body>
19-
<script src="./sketch.js"></script>
19+
<script src="/sketch.js"></script>
2020
</body>
2121
</html>

preview/global/vite.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default defineConfig({
1717
name: 'reload',
1818
configureServer(server) {
1919
const { ws, watcher } = server;
20-
const buildLibPath = path.resolve(libPath, './p5.rollup.js');
20+
const buildLibPath = path.resolve(libPath, './p5.js');
2121
watcher.add(buildLibPath);
2222
watcher.on('change', file => {
2323
if(file === buildLibPath){

0 commit comments

Comments
 (0)