Files

39 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

2026-07-09 19:20:20 +03:00
import { defineConfig } from "vite";
import laravel from "laravel-vite-plugin";
import tailwindcss from "@tailwindcss/vite";
2026-07-03 13:46:54 +00:00
export default defineConfig({
build: {
// Target browsers that support ES modules natively (Chrome 89+, Firefox 89+,
// Safari 15+, Edge 89+). Eliminates legacy polyfills flagged by PageSpeed.
2026-07-09 19:20:20 +03:00
target: ["es2022", "chrome89", "firefox89", "safari15", "edge89"],
2026-07-03 13:46:54 +00:00
},
plugins: [
laravel({
2026-09-04 19:39:37 +03:00
input: [
// checkout.css first: it's the portable cart/checkout module's
// structural base (@layer bbk-checkout) and must load before
// app.css so the host's own .bbk-* theming always wins.
"resources/css/checkout.css",
"resources/css/app.css",
"resources/js/app.js",
],
2026-07-03 13:46:54 +00:00
refresh: true,
}),
tailwindcss(),
],
server: {
2026-07-09 19:20:20 +03:00
host: "0.0.0.0",
2026-08-26 17:59:13 +03:00
port: process.env.VITE_PORT || 5174,
2026-07-03 13:46:54 +00:00
strictPort: true,
cors: true,
hmr: {
2026-07-09 19:20:20 +03:00
host: "localhost",
2026-07-31 17:41:55 +03:00
clientPort: process.env.VITE_PORT || 5174,
2026-07-03 13:46:54 +00:00
},
watch: {
2026-07-09 19:20:20 +03:00
ignored: ["**/storage/framework/views/**"],
2026-07-03 13:46:54 +00:00
},
},
});