We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b5f5a0 commit 75f252aCopy full SHA for 75f252a
preview/global/index.html
@@ -13,9 +13,9 @@
13
}
14
</style>
15
16
- <script src="./p5.js"></script>
+ <script src="/p5.js"></script>
17
</head>
18
<body>
19
-<script src="./sketch.js"></script>
+<script src="/sketch.js"></script>
20
</body>
21
</html>
preview/global/vite.config.mjs
@@ -17,7 +17,7 @@ export default defineConfig({
name: 'reload',
configureServer(server) {
const { ws, watcher } = server;
- const buildLibPath = path.resolve(libPath, './p5.rollup.js');
+ const buildLibPath = path.resolve(libPath, './p5.js');
watcher.add(buildLibPath);
22
watcher.on('change', file => {
23
if(file === buildLibPath){
0 commit comments