fix(docs): outDir error of VitePWA (#7100)

This commit is contained in:
qiang 2022-04-12 15:56:49 +08:00 committed by GitHub
parent 73fa508530
commit 1c632ef709
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,5 @@
{
"message": "New content available, click on reload button to update.",
"message": "New content available, click on refresh button to update.",
"refresh": "Refresh",
"close": "Close"
}

View File

@ -31,13 +31,16 @@ const { needRefresh, updateServiceWorker } = useRegisterSW()
z-index: 3000;
text-align: center;
}
.pwa-card .pwa-card-text {
margin: 0 0 1em;
}
.pwa-popup-enter-active,
.pwa-popup-leave-active {
transition: var(--el-transition-md-fade);
}
.pwa-popup-enter,
.pwa-popup-leave-to {
opacity: 0;

View File

@ -92,8 +92,12 @@ export default defineConfig(async ({ mode }) => {
Inspect(),
mkcert(),
VitePWA({
outDir: '.vitepress/dist',
includeAssets: ['images/**'],
manifest: {
id: '/',
name: 'Element Plus',
short_name: 'Element Plus',
description:
'a Vue 3 based component library for designers and developers',
icons: [