Migrate from v3 to v3.1.0
With the change to version 3.1.0
there are the following changes:
Module option optimizePreloads
The optimizePreloads
property has been replaced by optimizeSSR
.
Learn more about optimizeSSR
,
Poster BoosterYoutube
and BoosterVimeo
There is a new property posterSources
to configure the posters in BoosterYoutube
and BoosterVimeo
.
The following property has been removed:
posterDensities
posterSizes
posterSrc
Before:
vue
<template>
<BoosterYoutube
:poster-densities="'x1'"
:poster-sizes="{ default: '100vw' }"
:poster-src="'/custom-poster.jpg'"
/>
<BoosterVimeo
:poster-densities="'x1'"
:poster-sizes="{ default: '100vw' }"
:poster-src="'/custom-poster.jpg'"
/>
</template>
After:
vue
<template>
<BoosterYoutube
:poster-sources="[
{
src: '/custom-poster.jpg',
densities: 'x1',
media: 'all',
sizes: {
default: '100vw'
}
}
]"
/>
<BoosterVimeo
:poster-sources="[
{
src: '/custom-poster.jpg',
densities: 'x1',
media: 'all',
sizes: {
default: '100vw'
}
}
]"
/>
</template>