Closed ethanbeyer closed 5 years ago
@ethanbeyer this seems to be the issue on webapp-webpack-plugin https://github.com/brunocodutra/webapp-webpack-plugin/issues/106
my workaround is setting output.publicPath
to an empty string '' in config/webpack.config.js
Ah, thank you!! I will test this, but it sounds like it could be the fix. Appreciate it!
This worked.
Describe the bug When I run
npm run build:dist
, all the favicons URLs inserted into the head of the HTML are prefixed with a/
.The static site I'm creating is in a directory:
example.com/landing
, so the favicons 404 when it looks for the images atexample.com/images/favicons/*
, when they are located atexample.com/landing/images/favicons/*
.To Reproduce Steps to reproduce the behavior:
dist
folder withnpm run build:dist
example.com/landing
Expected behavior I would expect that the URLs for favicons would be generated as
images/favicons/*
.Desktop (please complete the following information):
Additional context When I ran
npm run setup
, I made sure that the URL for the live site included the directory - so either I edit thefavicon: path.join(ROOT, '/src/images/favicon.png')
insite.config.js
(seems like a bad idea), or the system needs to generate the favicon URLs without a leading slash.