diff publishable/vite.config.js @ 4:84c75d9d90be

Changing usage to be bootstrap 5, not everything is reviewed but it's been started
author luka
date Tue, 19 Aug 2025 20:33:35 -0400
parents e107504fa22c
children f282c6ef1671
line wrap: on
line diff
--- a/publishable/vite.config.js	Mon Jun 23 20:20:31 2025 -0400
+++ b/publishable/vite.config.js	Tue Aug 19 20:33:35 2025 -0400
@@ -5,9 +5,13 @@
 import path from "path";
 
 const pagesDir = "resources/js/pages";
-const pageScripts = fs
-    .readdirSync(pagesDir)
-    .map((file) => path.join(pagesDir, file));
+let pageScripts = [];
+
+if (fs.existsSync(pagesDir)) {
+    pageScripts = fs
+        .readdirSync(pagesDir)
+        .map((file) => path.join(pagesDir, file));
+}
 
 export default defineConfig({
  // Optional: Silence Sass deprecation warnings. See note below.
@@ -30,6 +34,7 @@
                 "resources/js/app.js",
                 "resources/js/easymde.js",
                 "resources/js/prismjs.js",
+                "resources/sass/app.scss",
                 ...pageScripts,
             ],
             refresh: true,