I haven't used jhipster since version 2.0 and I'm currently playing catch-up with version #4.0.6. When I try to build the initial app through "./mvnw" (with default dev maven profile) from the command line, the application javascript files are not added to the index.html (so that page comes up blank in my browser when I try http://localhost:8080). Could someone please explain me the normal chain of events which normally lead maven (running with the dev profile) to include the application javascript files into index.html ? Thank you very much in advance for your help. Best Regards kbjp
Our workflow is as below, yarn or npm will be used based on choice
yarn install taskpostInstall script in package.json is triggered after yarn install, this step calls webpack:build taskwww folder inside target or build folder based on build tool selectedmvnw or gradlew will launch the backend and should be available at localhost:8080 this should also serve the frontend compiled from above stepswebpack:build:dev manually after changes or have yarn start running with live reloadEither you didn't let the postInstall script run or you deleted the target folder
You can also force maven to run webpack task while starting by passing the webpack profile like mvnw -Pdev,webpack
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With