mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
32 lines
706 B
TypeScript
32 lines
706 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import fs from 'fs';
|
|
import path from 'path';
|
|
|
|
// __dirname-Ersatz für ESModules
|
|
const __dirname = path.dirname(new URL(import.meta.url).pathname);
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
host: true,
|
|
port: 5174,
|
|
/**
|
|
* https: {
|
|
* key: fs.readFileSync(path.resolve(__dirname, 'localhost-key.pem')),
|
|
* cert: fs.readFileSync(path.resolve(__dirname, 'localhost-cert.pem')),
|
|
* },
|
|
*/
|
|
},
|
|
plugins: [
|
|
react(),
|
|
tailwindcss(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'utopia-ui': path.resolve(__dirname, '../lib/src'),
|
|
|
|
}
|
|
}
|
|
});
|