firefly-iii/vite.config.js

32 lines
674 B
JavaScript
Raw Normal View History

2023-07-11 04:45:55 -05:00
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import fs from 'fs';
const host = 'firefly.sd.local';
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js'],
refresh: true,
}),
],
server: {
usePolling: true,
allowedHosts: '*.sd.local',
host: '0.0.0.0',
hmr: { host },
cors: true,
https: {
key: fs.readFileSync(`/vagrant/tls-certificates/wildcard.sd.local.key`),
cert: fs.readFileSync(`/vagrant/tls-certificates/wildcard.sd.local.crt`),
},
},
});