[Vuejs]-In Vue template, space and new line between element tags are not ignored

0👍

The issue is likely your use of the whitespace: condense setting in your Vue config.

According to the docs (https://cnpmjs.org/package/vue-template-compiler):

If set to ‘condense’:
Consecutive whitespaces inside a non-whitespace-only text node are condensed into a single space.

As this isn’t a ‘defaut setting’ on a new Vue app I’d suggest removing it and seeing if that resolves the issue.

Leave a comment