martin/demo/frontend/vite.config.ts

17 lines
382 B
TypeScript
Raw Normal View History

2023-05-30 03:12:22 +03:00
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import mkcert from 'vite-plugin-mkcert'
import { resolve } from 'path'
import viteTsConfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
plugins: [react(), viteTsConfigPaths({
root: './',
}), mkcert()],
build: {
target: 'esnext',
},
server: { https: true },
});