Mercurial > packages > framework
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/publishable/vite.config.js Wed Jun 18 22:28:47 2025 -0400 @@ -0,0 +1,30 @@ +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, + }), + ], +});
