mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Removed code duplication and get baseURL from nuxt runtime
This commit is contained in:
parent
0c840beded
commit
06df25c7cc
34 changed files with 215 additions and 244 deletions
|
@ -1,7 +1,7 @@
|
|||
import vueJsx from '@vitejs/plugin-vue-jsx';
|
||||
|
||||
import path from 'path';
|
||||
const baseUrl = process.env.NODE_ENV === 'production' ? '/primevue-nuxt/' : '/';
|
||||
const baseUrl = process.env.NODE_ENV === 'production' ? '/primevue/' : '/';
|
||||
|
||||
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
||||
export default defineNuxtConfig({
|
||||
|
@ -63,6 +63,11 @@ export default defineNuxtConfig({
|
|||
]
|
||||
}
|
||||
},
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
contextPath: baseUrl
|
||||
}
|
||||
},
|
||||
css: ['@/assets/styles/primevue.css', '/node_modules/primeflex/primeflex.css', '/node_modules/primeicons/primeicons.css', '@/assets/styles/flags.css'],
|
||||
vite: {
|
||||
plugins: [vueJsx()],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue