owntone-server/web-src/vite.config.js

32 lines
662 B
JavaScript
Raw Normal View History

2022-02-19 00:18:01 -05:00
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
resolve: { alias: { '@': '/src' } },
plugins: [vue()],
build: {
outDir: '../htdocs',
rollupOptions: {
output: {
entryFileNames: `assets/[name].js`,
chunkFileNames: `assets/[name].js`,
assetFileNames: `assets/[name].[ext]`
}
}
},
server: {
proxy: {
'/api': {
target: 'http://localhost:3689'
},
'/artwork': {
target: 'http://localhost:3689'
},
'/stream.mp3': {
target: 'http://localhost:3689'
}
}
}
})