2025-10-06 19:37:32 +03:00

28 lines
638 B
JavaScript

const path = require("path");
module.exports = {
// Output directory - build directly into Laravel's public/build folder
outputDir: path.resolve(__dirname, "../thanasoft-back/public/build"),
// Public path for assets
publicPath: process.env.NODE_ENV === "production" ? "/build/" : "/",
// Index path
indexPath: "index.html",
// Clean output directory before build
productionSourceMap: false,
// Dev server configuration
devServer: {
port: 8080,
proxy: {
"/api": {
target: "http://localhost:8000", // Laravel backend
changeOrigin: true,
secure: false,
},
},
},
};