You've already forked Epicnabbo-Catalogus-Updated-Daily
48 lines
1.2 KiB
JavaScript
48 lines
1.2 KiB
JavaScript
import { defineConfig } from "vite";
|
|
import laravel from "laravel-vite-plugin";
|
|
import path from "path";
|
|
import tailwindcss from "tailwindcss";
|
|
import postcssImport from "postcss-import";
|
|
import postcssNesting from "postcss-nesting";
|
|
import tailwindcssNesting from "tailwindcss/nesting";
|
|
import autoprefixer from "autoprefixer";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
laravel({
|
|
input: [
|
|
"resources/css/global.css",
|
|
"resources/js/global.js",
|
|
],
|
|
}),
|
|
{
|
|
name: "blade",
|
|
handleHotUpdate({ file, server }) {
|
|
if (file.endsWith(".blade.php")) {
|
|
server.ws.send({
|
|
type: "full-reload",
|
|
path: "*",
|
|
});
|
|
}
|
|
},
|
|
},
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": "/resources/js",
|
|
},
|
|
},
|
|
css: {
|
|
postcss: {
|
|
plugins: [
|
|
postcssImport(),
|
|
tailwindcssNesting(postcssNesting()),
|
|
tailwindcss({
|
|
config: path.resolve(__dirname, "tailwind.config.js"),
|
|
}),
|
|
autoprefixer(),
|
|
],
|
|
},
|
|
},
|
|
});
|