Skip to content

Commit

Permalink
Fix 'webpack serve' (#8106)
Browse files Browse the repository at this point in the history
  • Loading branch information
ylavoie committed Mar 30, 2024
1 parent c864af4 commit 54382a7
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions UI/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ if (TARGET !== "readme") {
const UnusedWebpackPluginOptions = {
// Source directories
directories: [
path.join(__dirname, "js-src/lsmb"),
path.join(__dirname, "js-src/lsmb"),
path.join(__dirname, "src")
],
// Exclude patterns
Expand Down 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 Down

0 comments on commit 54382a7

Please sign in to comment.