mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 08:57:08 +00:00
The Webpack dev server seems to really like /ws and ignores any attempts to set a different path, so we just rename our websocket instead.
42 lines
749 B
JavaScript
42 lines
749 B
JavaScript
module.exports = {
|
|
"transpileDependencies": [
|
|
"vuetify",
|
|
"leaflet-arrowheads"
|
|
],
|
|
devServer: {
|
|
host: "0.0.0.0",
|
|
proxy: {
|
|
"^/api(/|$)": {
|
|
target: "http://127.0.0.1:3000",
|
|
},
|
|
"^/dougal-websocket(/|$)": {
|
|
target: "ws://127.0.0.1:3000",
|
|
ws: true
|
|
}
|
|
}
|
|
},
|
|
chainWebpack: config => {
|
|
config
|
|
.plugin('html')
|
|
.tap(args => {
|
|
args[0].title = 'Dougal Web'
|
|
return args
|
|
})
|
|
},
|
|
configureWebpack: {
|
|
resolve: {
|
|
fallback: {
|
|
path: require.resolve("path-browserify")
|
|
}
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.(woff|woff2|eot|ttf|otf)$/i,
|
|
type: 'asset/resource'
|
|
},
|
|
],
|
|
},
|
|
}
|
|
}
|