Initial commit
This commit is contained in:
28
www/vite.config.js
Normal file
28
www/vite.config.js
Normal file
@@ -0,0 +1,28 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
react(),
|
||||
tailwindcss(),
|
||||
],
|
||||
optimizeDeps: {
|
||||
include: ['three'],
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
three: 'three'
|
||||
}
|
||||
},
|
||||
server: {
|
||||
https: {
|
||||
key: fs.readFileSync(path.resolve(__dirname, 'localhost-key.pem')),
|
||||
cert: fs.readFileSync(path.resolve(__dirname, 'localhost.pem')),
|
||||
},
|
||||
port: 5173
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user