mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Initial resources kit.
This commit is contained in:
31
vite.config.js
Normal file
31
vite.config.js
Normal file
@@ -0,0 +1,31 @@
|
||||
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`),
|
||||
},
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user