Files
3dealer/vite.config.js
T

31 lines
849 B
JavaScript
Raw 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-07-09 19:20:20 +03:00
input: ["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",
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-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
},
},
});