Mercurial > borealpoint
view vite.config.js @ 2:90296614b7e2 default tip
Adding in the base for the clients table
| author | luka |
|---|---|
| date | Thu, 28 Aug 2025 20:55:40 -0400 |
| parents | 9d7dcd54c677 |
| children |
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"; 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. css: { preprocessorOptions: { scss: { silenceDeprecations: [ 'import', 'mixed-decls', 'color-functions', 'global-builtin', ], }, }, }, plugins: [ laravel({ input: [ "resources/css/app.css", "resources/js/app.js", "resources/js/easymde.js", "resources/js/prismjs.js", "resources/js/ServerTable.js", "resources/sass/app.scss", ...pageScripts, ], refresh: true, }), prism({ languages: ["javascript", "css", "html", "typescript", "php", "sql", "bash", "sh"], plugins: ["line-numbers"], theme: "tomorrow", css: true, }), ], });
