You've already forked Epicnabbo-Catalogus-Updated-Daily
41 lines
1.0 KiB
JavaScript
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()],
|
|
},
|
|
},
|
|
});
|