Skip to content

Commit

Permalink
Fix 'webpack serve'
Browse files Browse the repository at this point in the history
  • Loading branch information
ylavoie committed Mar 30, 2024
1 parent 380b92e commit ea7fb99
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions UI/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,23 +495,28 @@ if (TARGET !== "readme") {
},
hot: true,
host: "0.0.0.0",
liveReload: true,
port: 9000,
proxy: {
"/*.pl": {
proxy: [
{
context: ["/*.pl"],
target: "http://proxy"
},
"/erp/api": {
{
context: ["/erp/api"],
target: "http://proxy"
},
"/app/*.pl": {
{
context: ["/app/*.pl"],
target: "http://proxy",
pathRewrite: { "^/app": "" }
},
"/app/erp/api": {
{
context: ["/app/erp/api"],
target: "http://proxy",
pathRewrite: { "^/app": "" }
}
},
],
static: [
{
directory: __dirname,
Expand All @@ -524,8 +529,9 @@ if (TARGET !== "readme") {
],
watchFiles: [
"webpack.config.js",
"**/*",
"**/*.{js,vue,html,css,gif,jpg,png,svg,json}",
"!js/*",
"!tests/*",
"node_modules/**/*"
]
},
Expand Down

0 comments on commit ea7fb99

Please sign in to comment.