We are using webpack to create our bundle.js and assets like css etc. Our webpack config uses the a12 profiles. When we set a relative publicPath of “./”, the url links in the create css file are wrong:
url(./assets/materialicons-regular.....)
The browser will then try to load the referenced entities from “…/assets/css/assets/…”
We cannot use an absolute path as publicPath as the same WAR file is to be deployed on the test and the prod system, which will have the same base url but different path.
Any ideas?