chore(eslint): apply ts style guide to vite config

This commit is contained in:
jon r 2025-02-22 21:59:03 +01:00
parent 90683f0c06
commit d333b79ee1
2 changed files with 10 additions and 11 deletions

View File

@ -23,18 +23,18 @@ export default defineConfig({
@import "~/style/inc/theme.scss"; @import "~/style/inc/theme.scss";
@import "~/style/inc/docs.scss"; @import "~/style/inc/docs.scss";
@import "~/style/funkwhale.scss"; @import "~/style/funkwhale.scss";
`, `
}, }
}, }
}, },
build: { build: {
rollupOptions: { rollupOptions: {
external: ["vue", 'vue-i18n', '@vueuse/core', 'vue-router', 'vue-devtools'], external: ['vue', 'vue-i18n', '@vueuse/core', 'vue-router', 'vue-devtools'],
output: { output: {
globals: { globals: {
Vue: "vue" Vue: 'vue'
} }
} }
}, }
}, }
}) })

View File

@ -52,22 +52,21 @@ export default defineConfig(({ mode }) => ({
// see: https://github.com/Borewit/music-metadata-browser/issues/836 // see: https://github.com/Borewit/music-metadata-browser/issues/836
nodePolyfills(), nodePolyfills(),
// https://unocss.dev/ // https://unocss.dev/
UnoCSS(), UnoCSS(),
vueDevTools(), vueDevTools()
], ],
server: { server: {
port: +(process.env.VUE_PORT ?? 8080), port: +(process.env.VUE_PORT ?? 8080),
watch: { watch: {
usePolling: true, usePolling: true
} }
}, },
resolve: { resolve: {
alias: [ alias: [
{ find: '#', replacement: fileURLToPath(new URL('./src/ui/workers', import.meta.url)) }, { find: '#', replacement: fileURLToPath(new URL('./src/ui/workers', import.meta.url)) },
{ find: '?', replacement: fileURLToPath(new URL('./test', import.meta.url)) }, { find: '?', replacement: fileURLToPath(new URL('./test', import.meta.url)) },
{ find: '~', replacement: fileURLToPath(new URL('./src', import.meta.url)) }, { find: '~', replacement: fileURLToPath(new URL('./src', import.meta.url)) }
] ]
}, },
css: { css: {