view 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
line wrap: on
line source

import { defineConfig } from "vite";
import laravel from "laravel-vite-plugin";
import prism from 'vite-plugin-prismjs';
import fs from "fs";
import path from "path";

const pagesDir = "resources/js/pages";
const pageScripts = fs
    .readdirSync(pagesDir)
    .map((file) => path.join(pagesDir, file));

export default defineConfig({
    plugins: [
        laravel({
            input: [
                "resources/css/app.css",
                "resources/js/app.js",
                "resources/js/easymde.js",
                ...pageScripts,
            ],
            refresh: true,
        }),
        prism({
            languages: ["javascript", "css", "html", "typescript", "php", "sql", "bash", "sh"],
            plugins: ["line-numbers"],
            theme: "tomorrow",
            css: true,
        }),
    ],
});