import { defineConfig } from "vite";
import laravel from "laravel-vite-plugin";
import path from "path";

export default defineConfig({
  plugins: [
    laravel({
      input: [
        "resources/sass/admin-app.scss",
        "resources/js/admin-app.js",
        "resources/sass/front-app.scss",
        "resources/js/front-app.js",
      ],
      refresh: true,
    }),
  ],
  resolve: {
    alias: {
      "~": path.resolve(__dirname, "node_modules"),
      "~bootstrap": path.resolve(__dirname, "node_modules/bootstrap"),
    },
  },
});
