generator-jhipster-yellowbricks-client-relativepathresource
v1.0.1
Published
JHipster blueprint to make the loading screen logo path relative in loading.css (removes leading slash)
Maintainers
Readme
generator-jhipster-yellowbricks-client-relativepathresource
One of - a JHipster blueprint that makes the loading screen logo path relative in
loading.css.
JHipster source
- Generator:
generators/client - Template:
loading.css.ejs
What it does
Patches src/main/webapp/content/css/loading.css during generation to replace the absolute logo URL with a relative one:
- background-image: url('/content/images/logo-jhipster.png');
+ background-image: url('../images/logo-jhipster.png');This ensures the loading screen logo loads correctly when the app is deployed under a non-root context path.
Prerequisites
- Node.js
^22.18.0 || >=24.11.0 - JHipster 9
Installation
npm install -g generator-jhipster-yellowbricks-client-relativepathresourceUsage
No configuration is needed. Run JHipster with this blueprint:
# Standard generator
jhipster --blueprints yellowbricks-client-relativepathresource
# With JDL
jhipster import-jdl your-app.jdl --blueprints yellowbricks-client-relativepathresource