2020-11-05 11:56:26 +01:00
|
|
|
const path = require('path')
|
2022-10-04 20:28:07 +02:00
|
|
|
const webpack = require('webpack')
|
2020-11-05 11:56:26 +01:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
productionSourceMap: false,
|
2023-01-13 19:36:51 +01:00
|
|
|
publicPath: './',
|
|
|
|
assetsDir: './',
|
2020-11-05 11:56:26 +01:00
|
|
|
configureWebpack: {
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
vue$: 'vue/dist/vue.esm.js',
|
|
|
|
'~': path.resolve(__dirname, 'src/'),
|
|
|
|
},
|
|
|
|
},
|
2022-10-04 20:28:07 +02:00
|
|
|
plugins: [
|
|
|
|
new webpack.NormalModuleReplacementPlugin(
|
|
|
|
/(.*)__KEYBOARD__/,
|
|
|
|
function(resource){
|
|
|
|
resource.request = resource.request
|
|
|
|
.replace(/__KEYBOARD__/, process.env.KEYBOARD || 'guacamole');
|
|
|
|
},
|
|
|
|
),
|
|
|
|
],
|
2020-11-05 11:56:26 +01:00
|
|
|
},
|
|
|
|
devServer: {
|
2022-05-14 19:25:22 +02:00
|
|
|
allowedHosts: "all",
|
2020-11-29 16:14:09 +01:00
|
|
|
proxy: {
|
|
|
|
'^/api': {
|
2021-01-27 14:57:16 +01:00
|
|
|
target: 'http://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/',
|
2020-11-29 16:14:09 +01:00
|
|
|
},
|
|
|
|
},
|
2020-11-29 15:50:08 +01:00
|
|
|
},
|
2020-11-05 11:56:26 +01:00
|
|
|
}
|