import { defineConfig } from "vite";
import laravel from "laravel-vite-plugin";
import { readdirSync, statSync } from "fs";
import { join, relative, dirname } from "path";
import { fileURLToPath } from "url";

export default defineConfig({
  build: {
    outDir: "../../public/build-subscription",
    emptyOutDir: true,
    manifest: true,
  },
  plugins: [
    laravel({
      publicDirectory: "../../public",
      buildDirectory: "build-subscription",
      input: [__dirname + "/resources/assets/sass/app.scss", __dirname + "/resources/assets/js/app.js"],
      refresh: true,
    }),
  ],
});
