dev server layout different than built #9771
-
|
When using the dev server ( I have added this code (and removed it) in the q-layout component like so: |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 3 replies
-
|
I have also tried moving this css to the body tag in the index.template.html file but the result is the same: The dev server displays something different than the build. |
Beta Was this translation helpful? Give feedback.
-
|
Please supply a reproduction repo (or fork https://codesandbox.quasar.dev) so we can investigate. |
Beta Was this translation helpful? Give feedback.
-
|
Can you try adding this directly to your css/sass file, instead of inline on an element? |
Beta Was this translation helpful? Give feedback.
-
|
I thought perhaps the fact that I was building for PWA but dev server testing was SPA might make a difference (because it was the only difference I could find), but alas running |
Beta Was this translation helpful? Give feedback.
-
|
One thing I have been able to determine: This does not happen in v2 build process, but does happen in v1. I did a partial port of my app and could not reproduce this problem. Unfortunately my app relies on too many components that are not yet vue3 ready, so I can't port the entire thing yet. |
Beta Was this translation helpful? Give feedback.
-
|
ugh, I finally figured out what was causing this, it was the meta viewport tag in my index.template.html file. Here was the old tag which broke on build (but NOT in devServer): at some point in the distant past I must have set |
Beta Was this translation helpful? Give feedback.
-
|
I have also found |
Beta Was this translation helpful? Give feedback.
ugh, I finally figured out what was causing this, it was the meta viewport tag in my index.template.html file. Here was the old tag which broke on build (but NOT in devServer):
at some point in the distant past I must have set
viewport-fit=cover(I suspect to deal with standalone mode) and it never caused any issues until I swapped out theq-layoutrecently for my own layout. And because pwa dev server mode hasn't worked in some time, I was…