Open Noi0103 opened 2 months ago
I have a Fork with some UI adjustments to show uuids that I want to host in a subfolder.
The weppack configuration with a different Subfolder is used.
The Configuration fixed not all of the links. Some requests still use "/" instead of the provided output.publicPath.
output.publicPath: '/my/subfolder/'
npm run build
docker buildx build
Now it mostly works but some ressources are still not found due to a wrong requested path (ignoring my base path according to browser dev tools).
using grep -r "base href" i found this:
grep -r "base href"
./dist/index.html: <base href="/" target="_blank"/>
replaced the base href path in ./dist/index.html "/" with "/my/subfolder/"
./dist/index.html
Since this base path is used in ./src/template.html I assume this is a second place where I'd have to set the subfolder:
./src/template.html: <base href="/" target="_blank"/>
Since this is the same configuration done in two places I want to ask: Is this intended behaviour?
intention
I have a Fork with some UI adjustments to show uuids that I want to host in a subfolder.
expected behaviour
The weppack configuration with a different Subfolder is used.
actual behaviour
The Configuration fixed not all of the links. Some requests still use "/" instead of the provided output.publicPath.
reproduce
output.publicPath: '/my/subfolder/'
to webpack.config.prod.jsnpm run build
docker buildx build
the nginx image with webappNow it mostly works but some ressources are still not found due to a wrong requested path (ignoring my base path according to browser dev tools).
using
grep -r "base href"
i found this:replaced the base href path in
./dist/index.html
"/" with "/my/subfolder/"Since this base path is used in ./src/template.html I assume this is a second place where I'd have to set the subfolder:
Since this is the same configuration done in two places I want to ask: Is this intended behaviour?