mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-16 18:25:00 -06:00
36 lines
783 B
JavaScript
36 lines
783 B
JavaScript
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/assets/v4/sass/app.scss',
|
|
'resources/assets/v4/app.js',
|
|
'resources/assets/v4/index.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`),
|
|
},
|
|
},
|
|
});
|