2018-10-14 10:47:54 +02:00
|
|
|
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',
|
2018-11-10 05:16:25 +01:00
|
|
|
|
2018-10-14 10:47:54 +02:00
|
|
|
assetsDir: 'player',
|
|
|
|
|
2021-01-10 07:51:50 +01:00
|
|
|
// Relative public path
|
2020-04-28 11:01:25 -06:00
|
|
|
publicPath: './',
|
|
|
|
|
2018-10-14 10:47:54 +02:00
|
|
|
// 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': {
|
2020-05-02 08:43:10 +02:00
|
|
|
target: process.env.VUE_APP_JSON_API_SERVER
|
2018-11-10 05:16:25 +01:00
|
|
|
},
|
|
|
|
'/artwork': {
|
2020-05-02 08:43:10 +02:00
|
|
|
target: process.env.VUE_APP_JSON_API_SERVER
|
2019-02-14 12:19:29 +01:00
|
|
|
},
|
|
|
|
'/stream.mp3': {
|
2020-05-02 08:43:10 +02:00
|
|
|
target: process.env.VUE_APP_JSON_API_SERVER
|
2018-10-14 10:47:54 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|