mirror of
https://github.com/fumiama/paper-manager.git
synced 2026-06-22 11:30:32 +08:00
optimize vben/build
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
* Zero-config PWA for Vite
|
||||
* https://github.com/antfu/vite-plugin-pwa
|
||||
*/
|
||||
import { VitePWA } from 'vite-plugin-pwa';
|
||||
import { VitePWA } from 'vite-plugin-pwa'
|
||||
|
||||
export function configPwaConfig(env: ViteEnv) {
|
||||
const { VITE_USE_PWA, VITE_GLOB_APP_TITLE, VITE_GLOB_APP_SHORT_NAME } = env;
|
||||
const { VITE_USE_PWA, VITE_GLOB_APP_TITLE, VITE_GLOB_APP_SHORT_NAME } = env
|
||||
|
||||
if (VITE_USE_PWA) {
|
||||
// vite-plugin-pwa
|
||||
@@ -26,8 +26,8 @@ export function configPwaConfig(env: ViteEnv) {
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
return pwaPlugin;
|
||||
})
|
||||
return pwaPlugin
|
||||
}
|
||||
return [];
|
||||
return []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user