mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-26 02:40:43 -06:00
35 lines
774 B
JavaScript
35 lines
774 B
JavaScript
import {defineConfig} from 'vite';
|
|
import laravel from 'laravel-vite-plugin';
|
|
|
|
|
|
import fs from 'fs';
|
|
|
|
|
|
const host = '127.0.0.1';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
laravel({
|
|
input: [
|
|
'resources/assets/v2/sass/app.scss',
|
|
'resources/assets/v2/dashboard.js',
|
|
],
|
|
refresh: true,
|
|
|
|
}),
|
|
],
|
|
|
|
|
|
server: {
|
|
usePolling: true,
|
|
allowedHosts: '*.sd.local',
|
|
host: '0.0.0.0',
|
|
hmr: {host},
|
|
cors: true
|
|
// https: {
|
|
// key: fs.readFileSync(`/Users/sander/Sites/vm/tls-certificates/wildcard.sd.local.key`),
|
|
// cert: fs.readFileSync(`/Users/sander/Sites/vm/tls-certificates/wildcard.sd.local.crt`),
|
|
// },
|
|
},
|
|
});
|