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/docs.scss";
@import "~/style/funkwhale.scss";
`,
},
},
`
}
}
},
build: {
rollupOptions: {
external: ["vue", 'vue-i18n', '@vueuse/core', 'vue-router', 'vue-devtools'],
external: ['vue', 'vue-i18n', '@vueuse/core', 'vue-router', 'vue-devtools'],
output: {
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
nodePolyfills(),
// https://unocss.dev/
UnoCSS(),
vueDevTools(),
vueDevTools()
],
server: {
port: +(process.env.VUE_PORT ?? 8080),
watch: {
usePolling: true,
usePolling: true
}
},
resolve: {
alias: [
{ 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('./src', import.meta.url)) },
{ find: '~', replacement: fileURLToPath(new URL('./src', import.meta.url)) }
]
},
css: {