vite-plugin-vue2 icon indicating copy to clipboard operation
vite-plugin-vue2 copied to clipboard

Whitespace "preserve"

Open mcube27 opened this issue 2 years ago • 0 comments

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 ?

mcube27 avatar Nov 22 '22 12:11 mcube27