Skip to content

Commit

Permalink
remove leading slash on publicPath (#11174)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrosenzweig committed Oct 21, 2019
1 parent 7a64501 commit a995d5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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$/,
Expand Down

0 comments on commit a995d5a

Please sign in to comment.