mirror of
https://github.com/unraid/api.git
synced 2026-01-04 07:29:48 -06:00
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Eli Bosley <ekbosley@gmail.com> - **CI/CD** - Updated GitHub Actions workflow to build Unraid UI Web Components. - Adjusted artifact naming and download configurations. - **Web Components** - Added new web components and registration mechanism. - Implemented toast notifications. - Enhanced UI component library. - **Notifications** - Added real-time notification subscription. - Created notification settings page. - Implemented notification toast system. - **API Improvements** - Refactored GraphQL schema loading. - Updated authentication and cookie handling. - Improved error logging and server initialization. - **Development Tools** - Updated ESLint configuration. - Enhanced import path management. - Added new development dependencies.
42 lines
1.0 KiB
TypeScript
42 lines
1.0 KiB
TypeScript
import { fileURLToPath, URL } from 'node:url';
|
|
import vue from '@vitejs/plugin-vue';
|
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
import tailwindcss from 'tailwindcss';
|
|
import { defineConfig } from 'vite';
|
|
import vueDevTools from 'vite-plugin-vue-devtools';
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue(), vueJsx(), vueDevTools()],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
define: {
|
|
'process.env.NODE_ENV': JSON.stringify('production'),
|
|
},
|
|
css: {
|
|
postcss: {
|
|
plugins: [tailwindcss()],
|
|
},
|
|
},
|
|
build: {
|
|
manifest: 'ui.manifest.json',
|
|
sourcemap: true,
|
|
cssCodeSplit: false,
|
|
lib: {
|
|
entry: fileURLToPath(new URL('./src/register.ts', import.meta.url)),
|
|
name: 'unraid-web-components',
|
|
formats: ['es'],
|
|
},
|
|
rollupOptions: {
|
|
output: {
|
|
entryFileNames: '[name].[hash].js',
|
|
chunkFileNames: '[name].[hash].js',
|
|
assetFileNames: '[name].[hash][extname]',
|
|
},
|
|
},
|
|
},
|
|
});
|