kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
37 wiersze
871 B
TypeScript
37 wiersze
871 B
TypeScript
![]() |
import { fileURLToPath, URL } from 'node:url'
|
||
|
import { defineConfig } from 'vite'
|
||
|
import vueDevTools from 'vite-plugin-vue-devtools'
|
||
|
import path from 'node:path'
|
||
|
|
||
|
export default defineConfig({
|
||
|
plugins: [vueDevTools()],
|
||
|
publicDir: false,
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'~': fileURLToPath(new URL('../src', import.meta.url)),
|
||
|
'/node_modules': fileURLToPath(new URL('../node_modules', import.meta.url))
|
||
|
}
|
||
|
},
|
||
|
css: {
|
||
|
preprocessorOptions: {
|
||
|
scss: {
|
||
|
// additionalData: `
|
||
|
// @import "~/styles/inc/theme";
|
||
|
// @import "~/styles/inc/docs";
|
||
|
// $docs: ${!!process.env.VP_DOCS};
|
||
|
// `,
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
build: {
|
||
|
rollupOptions: {
|
||
|
external: ["vue", 'vue-i18n', '@vueuse/core', 'vue-router', 'vue-devtools'],
|
||
|
output: {
|
||
|
globals: {
|
||
|
Vue: "vue"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
},
|
||
|
})
|