Change static assets and websocket interface to /sshwifty/assets and /sshwifty/socket. This should allow user to map Sshwifty to a subdirectory behind a reverse proxy

This commit is contained in:
NI
2019-12-06 18:58:59 +08:00
parent db52edff2f
commit 2356a7c155
3 changed files with 39 additions and 7 deletions

View File

@@ -185,7 +185,7 @@ module.exports = {
devtool:
process.env.NODE_ENV === "development" ? "inline-source-map" : "source-map",
output: {
publicPath: "/",
publicPath: "/sshwifty/assets/",
path: path.join(__dirname, ".tmp", "dist"),
filename: process.env.NODE_ENV === "development" ? "[id].js" : "[hash].js"
},