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

41 lines
940 B
JavaScript
Raw Permalink Normal View History

module.exports = {
// Runtime compiler is required to compile vue templates
runtimeCompiler: true,
// Output path for the generated static assets (js/css)
outputDir: '../htdocs',
// Output path for the generated index.html
indexPath: 'index.html',
assetsDir: 'player',
2021-01-10 01:51:50 -05:00
// Relative public path
publicPath: './',
// Do not add hashes to the generated js/css filenames, would otherwise
// require to adjust the Makefile in htdocs each time the web interface is
// build
filenameHashing: false,
css: {
sourceMap: true
},
devServer: {
// Proxy forked-daapd JSON API calls to the forked-daapd server running on
// localhost:3689
proxy: {
'/api': {
target: process.env.VUE_APP_JSON_API_SERVER
},
'/artwork': {
target: process.env.VUE_APP_JSON_API_SERVER
},
'/stream.mp3': {
target: process.env.VUE_APP_JSON_API_SERVER
}
}
}
}