coolify/vite.config.js

42 lines
1 KiB
JavaScript
Raw Permalink Normal View History

import { defineConfig, loadEnv } from "vite";
2023-06-07 19:44:16 +00:00
import laravel from "laravel-vite-plugin";
import vue from "@vitejs/plugin-vue";
2023-03-17 14:33:48 +00:00
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '')
return {
server: {
watch: {
ignored: [
"**/dev_*_data/**",
"**/storage/**",
],
},
host: "0.0.0.0",
hmr: {
host: env.VITE_HOST || '0.0.0.0'
},
2024-11-11 11:13:15 +00:00
},
plugins: [
laravel({
input: ["resources/css/app.css", "resources/js/app.js"],
refresh: true,
}),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
2023-05-10 13:49:56 +00:00
},
}),
],
resolve: {
alias: {
vue: "vue/dist/vue.esm-bundler.js",
2023-05-10 13:49:56 +00:00
},
},
}
2023-03-17 14:33:48 +00:00
});