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