Skip to content
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

Whitespace "preserve" #66

Open
mcube27 opened this issue Nov 22, 2022 · 0 comments
Open

Whitespace "preserve" #66

mcube27 opened this issue Nov 22, 2022 · 0 comments

Comments

@mcube27
Copy link

mcube27 commented Nov 22, 2022

Hi,

I have this code in my sfc:

<div class="dashboard-header-title">
  <span v-if="!isEdition" class="dashboard-header-title">
    {{ $t('booking.titleAdd') }}
  </span>
  <span v-else class="dashboard-header-title">
    {{ $t('booking.titleEdit') }}
  </span>
  <span>{{ $t('booking.at') }} {{ vendor.public_name }}</span>
</div>

And I can't get to have a space before my last span even when configuring the plugin like this in vite.config:

vue({
  template: {
    compilerOptions: {
      whitespace: 'preserve'
    }
  }
})

Is there a way or is it a bug ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant