-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application Shell Template does not work: index.html does not get used in production #20629
Comments
I wonder if this is a problem that the production bundle is not being built at all but the default one is used. Then you should see
in the build log |
If so, adding |
leangermany
changed the title
Application Shell Template does not work: index.html does not get used production
Application Shell Template does not work: index.html does not get used in production
Dec 6, 2024
This is the case. |
That did work! I added this to my pom:
|
mshabarov
moved this to 🔖 Normal Priority (P2)
in Vaadin Flow bugs & maintenance (Vaadin 10+)
Dec 9, 2024
tepi
moved this from 🪵Product backlog
to ⚒️ In progress
in Vaadin Flow ongoing work (Vaadin 10+)
Dec 9, 2024
mshabarov
moved this from 🔖 Normal Priority (P2)
to 🏗 WIP
in Vaadin Flow bugs & maintenance (Vaadin 10+)
Dec 10, 2024
mcollovati
added a commit
that referenced
this issue
Dec 16, 2024
Stores index.html hash in stats.json and forces production bundle to be re-built if file contents has changed. Changes to index.html does not trigger a dev bundle re-generation since in dev mode the file is served directly from the frontend folder. Fixes #20629
mcollovati
added a commit
that referenced
this issue
Dec 16, 2024
Stores index.html hash in stats.json and forces production bundle to be re-built if file contents have changed. Changes to index.html do not trigger a dev bundle re-generation since in dev mode the file is served directly from the frontend folder. Fixes #20629
mcollovati
moved this from ⚒️ In progress
to 🔎Iteration reviews
in Vaadin Flow ongoing work (Vaadin 10+)
Dec 16, 2024
github-project-automation
bot
moved this from 🔎Iteration reviews
to Done
in Vaadin Flow ongoing work (Vaadin 10+)
Dec 18, 2024
github-project-automation
bot
moved this from 🏗 WIP
to ✅ Closed
in Vaadin Flow bugs & maintenance (Vaadin 10+)
Dec 18, 2024
vaadin-bot
pushed a commit
that referenced
this issue
Dec 18, 2024
Stores index.html hash in stats.json and forces production bundle to be re-built if file contents have changed. Changes to index.html do not trigger a dev bundle re-generation since in dev mode the file is served directly from the frontend folder. Fixes #20629
vaadin-bot
pushed a commit
that referenced
this issue
Dec 18, 2024
Stores index.html hash in stats.json and forces production bundle to be re-built if file contents have changed. Changes to index.html do not trigger a dev bundle re-generation since in dev mode the file is served directly from the frontend folder. Fixes #20629
vaadin-bot
pushed a commit
that referenced
this issue
Dec 18, 2024
Stores index.html hash in stats.json and forces production bundle to be re-built if file contents have changed. Changes to index.html do not trigger a dev bundle re-generation since in dev mode the file is served directly from the frontend folder. Fixes #20629
vaadin-bot
added a commit
that referenced
this issue
Dec 18, 2024
Stores index.html hash in stats.json and forces production bundle to be re-built if file contents have changed. Changes to index.html do not trigger a dev bundle re-generation since in dev mode the file is served directly from the frontend folder. Fixes #20629 Co-authored-by: Marco Collovati <[email protected]>
vaadin-bot
added a commit
that referenced
this issue
Dec 18, 2024
Stores index.html hash in stats.json and forces production bundle to be re-built if file contents have changed. Changes to index.html do not trigger a dev bundle re-generation since in dev mode the file is served directly from the frontend folder. Fixes #20629 Co-authored-by: Marco Collovati <[email protected]>
vaadin-bot
added a commit
that referenced
this issue
Dec 18, 2024
Stores index.html hash in stats.json and forces production bundle to be re-built if file contents have changed. Changes to index.html do not trigger a dev bundle re-generation since in dev mode the file is served directly from the frontend folder. Fixes #20629 Co-authored-by: Marco Collovati <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the bug
The index.html file does not get used in production mode. I added a
<script>
to the head and in dev mode it works fine. When usingmvn package -Pproduction
the index.html does not contain any of my changes. In fact the default template is used.Expected behavior
The /frontend/index.html is used in production mode.
Minimal reproducible example
mvn package -Pproduction
<!-- This outlet div is where the views are rendered -->
)Versions
The text was updated successfully, but these errors were encountered: