mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
import { resolve } from 'node:path';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
root: 'src',
|
|
plugins: [tailwindcss(), react()],
|
|
resolve: {
|
|
dedupe: ['react', 'react-dom'],
|
|
},
|
|
optimizeDeps: {
|
|
exclude: ['@videojs/core', '@videojs/html', '@videojs/icons', '@videojs/react', '@videojs/store', '@videojs/utils'],
|
|
},
|
|
build: {
|
|
outDir: resolve(__dirname, 'dist'),
|
|
emptyOutDir: true,
|
|
rollupOptions: {
|
|
input: {
|
|
main: resolve(__dirname, 'src/index.html'),
|
|
core: resolve(__dirname, 'src/core/index.html'),
|
|
html: resolve(__dirname, 'src/html/index.html'),
|
|
'html-background': resolve(__dirname, 'src/html-background/index.html'),
|
|
'html-tailwind': resolve(__dirname, 'src/html-tailwind/index.html'),
|
|
react: resolve(__dirname, 'src/react/index.html'),
|
|
'react-background': resolve(__dirname, 'src/react-background/index.html'),
|
|
'react-tailwind': resolve(__dirname, 'src/react-tailwind/index.html'),
|
|
},
|
|
},
|
|
},
|
|
});
|