import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue"; //add this line
import { resolve } from "path"; // Import the resolve function from 'path'
import AutoImport from "unplugin-auto-import/vite";
import laravel, { refreshPaths } from "laravel-vite-plugin";
export default defineConfig({
resolve: {
alias: {
root: resolve(__dirname, "resources"), // Use resolve() to get the correct path
},
},
plugins: [
vue(), // write this
laravel({
input: ["resources/css/app.css", "resources/js/app.js"],
//refresh: true,
refresh: [...refreshPaths, "app/Livewire/**"],
}),
AutoImport({
/* options */
}),
],
});
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue"; //add this line
import { resolve } from "path"; // Import the resolve function from 'path'
import AutoImport from "unplugin-auto-import/vite";
import laravel, { refreshPaths } from "laravel-vite-plugin";
export default defineConfig({
resolve: {
alias: {
root: resolve(__dirname, "resources"), // Use resolve() to get the correct path
},
},
plugins: [
vue(), // write this
laravel({
input: ["resources/css/app.css", "resources/js/app.js"],
//refresh: true,
refresh: [...refreshPaths, "app/Livewire/**"],
}),
AutoImport({
/* options */
}),
],
});