Initial resources kit.

This commit is contained in:
James Cole
2023-07-11 11:45:55 +02:00
parent 27037c2fbb
commit b9cf8b3ef2
62 changed files with 32671 additions and 5563 deletions

31
vite.config.js Normal file
View 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`),
},
},
});