From a995d5aa8a5661018fb0729edb0b4a0a691d012f Mon Sep 17 00:00:00 2001
From: Paul Rosenzweig <paulrosenzweig@users.noreply.github.com>
Date: Mon, 21 Oct 2019 16:02:35 -0400
Subject: [PATCH] remove leading slash on publicPath (#11174)

---
 webpack.config.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/webpack.config.js b/webpack.config.js
index 7e68b055140..f8d71c2d3c8 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -61,7 +61,7 @@ const config = (module.exports = {
     path: BUILD_PATH + "/app/dist",
     // NOTE: the filename on disk won't include "?[chunkhash]" but the URL in index.html generated by HtmlWebpackPlugin will:
     filename: "[name].bundle.js?[hash]",
-    publicPath: "/app/dist/",
+    publicPath: "app/dist/",
   },
 
   module: {
@@ -85,7 +85,7 @@ const config = (module.exports = {
       },
       {
         test: /\.(eot|woff2?|ttf|svg|png)$/,
-        use: [{ loader: "file-loader" }],
+        use: [{ loader: "file-loader", options: { publicPath: "" } }],
       },
       {
         test: /\.css$/,
-- 
GitLab