primevue-mirror/nuxt.config.js

62 lines
3.8 KiB
JavaScript
Raw Normal View History

2022-09-20 21:42:28 +00:00
import vueJsx from '@vitejs/plugin-vue-jsx';
2022-09-06 11:52:18 +00:00
const path = require('path');
2022-09-13 11:29:45 +00:00
2022-09-06 11:52:18 +00:00
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
2022-09-20 21:42:28 +00:00
ssr: false,
2022-09-14 14:26:41 +00:00
typescript: false,
components: true,
app: {
2022-09-20 21:42:28 +00:00
baseURL: process.env.NODE_ENV === 'production' ? '/primevue-nuxt' : '/',
2022-09-14 14:26:41 +00:00
head: {
link: [
{
2022-12-08 18:30:15 +00:00
id: 'home-table-link',
2022-09-14 14:26:41 +00:00
rel: 'stylesheet',
2022-12-09 09:02:20 +00:00
href: '/styles/landing/themes/lara-light-blue/theme.css'
2022-09-14 14:26:41 +00:00
},
{
2022-12-08 18:30:15 +00:00
id: 'theme-link',
2022-09-14 14:26:41 +00:00
rel: 'stylesheet',
2022-12-09 09:02:20 +00:00
href: `/themes/lara-light-blue/theme.css`
2022-09-14 14:26:41 +00:00
}
]
2022-09-07 14:20:55 +00:00
}
},
2022-09-14 14:26:41 +00:00
css: ['@/assets/styles/primevue.css', '/node_modules/primeflex/primeflex.css', '/node_modules/primeicons/primeicons.css', '/node_modules/prismjs/themes/prism-coy.css', '@/assets/styles/flags.css'],
vite: {
plugins: [vueJsx()],
resolve: {
alias: {
'primevue/ripple': path.resolve(__dirname, '/components/ripple/Ripple.js'),
'primevue/tooltip': path.resolve(__dirname, '/components/tooltip/Tooltip.js'),
2022-12-08 11:04:25 +00:00
'primevue/focustrap': path.resolve(__dirname, '/components/focustrap/FocusTrap.js'),
2022-09-14 14:26:41 +00:00
'primevue/useconfirm': path.resolve(__dirname, '/components/useconfirm/UseConfirm.js'),
'primevue/usetoast': path.resolve(__dirname, '/components/usetoast/UseToast.js'),
'primevue/usedialog': path.resolve(__dirname, '/components/usedialog/UseDialog.js'),
'primevue/utils': path.resolve(__dirname, '/components/utils/Utils.js'),
'primevue/api': path.resolve(__dirname, '/components/api/Api.js'),
'primevue/portal': path.resolve(__dirname, '/components/portal/Portal.vue'),
'primevue/button': path.resolve(__dirname, '/components/button/Button.vue'),
'primevue/inputtext': path.resolve(__dirname, '/components/inputtext/InputText.vue'),
'primevue/dialog': path.resolve(__dirname, '/components/dialog/Dialog.vue'),
'primevue/menu': path.resolve(__dirname, '/components/menu/Menu.vue'),
'primevue/tieredmenu': path.resolve(__dirname, '/components/tieredmenu/TieredMenu.vue'),
'primevue/dropdown': path.resolve(__dirname, '/components/dropdown/Dropdown.vue'),
'primevue/inputnumber': path.resolve(__dirname, '/components/inputnumber/InputNumber.vue'),
'primevue/paginator': path.resolve(__dirname, '/components/paginator/Paginator.vue'),
'primevue/progressbar': path.resolve(__dirname, '/components/progressbar/ProgressBar.vue'),
'primevue/message': path.resolve(__dirname, '/components/message/Message.vue'),
'primevue/tree': path.resolve(__dirname, '/components/tree/Tree.vue'),
2022-12-08 11:04:25 +00:00
'primevue/badge': path.resolve(__dirname, '/components/badge/Badge.vue'),
2022-09-14 14:26:41 +00:00
'primevue/confirmationeventbus': path.resolve(__dirname, '/components/confirmationeventbus/ConfirmationEventBus.js'),
'primevue/toasteventbus': path.resolve(__dirname, '/components/toasteventbus/ToastEventBus.js'),
'primevue/overlayeventbus': path.resolve(__dirname, '/components/overlayeventbus/OverlayEventBus.js'),
'primevue/terminalservice': path.resolve(__dirname, '/components/terminalservice/TerminalService.js'),
'primevue/dynamicdialogeventbus': path.resolve(__dirname, '/components/dynamicdialogeventbus/DynamicDialogEventBus.js'),
'primevue/virtualscroller': path.resolve(__dirname, '/components/virtualscroller/VirtualScroller.vue')
}
}
}
});