annotate publishable/vite.config.js @ 2:b44434aaa767

Moving around the components. Made a big step in the right direction with the Builder and named joins being accessible.
author luka
date Wed, 18 Jun 2025 22:28:47 -0400
parents
children e107504fa22c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
1 import { defineConfig } from "vite";
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
2 import laravel from "laravel-vite-plugin";
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
3 import prism from 'vite-plugin-prismjs';
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
4 import fs from "fs";
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
5 import path from "path";
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
6
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
7 const pagesDir = "resources/js/pages";
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
8 const pageScripts = fs
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
9 .readdirSync(pagesDir)
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
10 .map((file) => path.join(pagesDir, file));
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
11
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
12 export default defineConfig({
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
13 plugins: [
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
14 laravel({
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
15 input: [
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
16 "resources/css/app.css",
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
17 "resources/js/app.js",
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
18 "resources/js/easymde.js",
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
19 ...pageScripts,
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
20 ],
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
21 refresh: true,
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
22 }),
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
23 prism({
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
24 languages: ["javascript", "css", "html", "typescript", "php", "sql", "bash", "sh"],
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
25 plugins: ["line-numbers"],
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
26 theme: "tomorrow",
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
27 css: true,
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
28 }),
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
29 ],
b44434aaa767 Moving around the components.
luka
parents:
diff changeset
30 });