diff vite.config.ts @ 19:f0a773084a2e

add shoelace
author drewp@bigasterisk.com
date Mon, 17 Apr 2023 00:42:27 -0700
parents 1b388ee5dd09
children a7b644dc1b4b
line wrap: on
line diff
--- a/vite.config.ts	Mon Apr 17 00:41:25 2023 -0700
+++ b/vite.config.ts	Mon Apr 17 00:42:27 2023 -0700
@@ -7,7 +7,13 @@
     strictPort: true,
     port: 8002,
     hmr: { path: "vite-ws" },
-    fs: { allow: ["src", "node_modules", "."] },
+    fs: {
+      allow: [
+        // these are relative to config.root which is ./src/
+        ".",
+        "../node_modules",
+      ],
+    },
   },
   root: "src",
   build: {