neko/vue.config.js

34 lines
759 B
JavaScript
Raw Normal View History

2020-11-05 11:56:26 +01:00
const path = require('path')
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/'),
},
},
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
}