Files
Epicnabbo-Catalogus-Updated…/cms update/resources/themes/atom/vite.config.js
T
Remco b67e0ec2b9 🆙 Add fixed cms 🆙
2026-02-02 19:30:21 +01:00

41 lines
1.0 KiB
JavaScript

import { defineConfig } from "vite";
import laravel from "laravel-vite-plugin";
import path from "path";
import tailwindcss from "@tailwindcss/postcss";
import autoprefixer from "autoprefixer";
export default defineConfig({
plugins: [
laravel({
input: [
path.resolve(__dirname, "css/app.css"),
path.resolve(__dirname, "js/app.js"),
"resources/js/global.js",
"resources/css/global.css",
],
}),
{
name: "blade",
handleHotUpdate({ file, server }) {
if (file.endsWith(".blade.php")) {
server.ws.send({
type: "full-reload",
path: "*",
});
}
},
},
],
resolve: {
alias: {
"@": path.resolve(__dirname, "js/app.js"),
},
},
css: {
postcss: {
plugins: [tailwindcss(), autoprefixer()],
},
},
});