mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-06 20:32:55 +08:00
72 lines
1.6 KiB
JavaScript
72 lines
1.6 KiB
JavaScript
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import { VitePWA } from 'vite-plugin-pwa'
|
|
import AutoImport from 'unplugin-auto-import/vite'
|
|
import Components from 'unplugin-vue-components/vite'
|
|
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
|
|
import wasm from "vite-plugin-wasm";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
build: {
|
|
outDir: './dist',
|
|
},
|
|
plugins: [
|
|
vue(),
|
|
wasm(),
|
|
AutoImport({
|
|
imports: [
|
|
'vue',
|
|
{
|
|
'naive-ui': [
|
|
'useMessage',
|
|
'useNotification',
|
|
'NButton',
|
|
'NPopconfirm',
|
|
'NIcon',
|
|
]
|
|
}
|
|
]
|
|
}),
|
|
Components({
|
|
resolvers: [NaiveUiResolver()]
|
|
}),
|
|
VitePWA({
|
|
registerType: null,
|
|
devOptions: {
|
|
enabled: false
|
|
},
|
|
workbox: {
|
|
disableDevLogs: true,
|
|
globPatterns: [],
|
|
runtimeCaching: [],
|
|
navigateFallback: null,
|
|
cleanupOutdatedCaches: true,
|
|
},
|
|
manifest: {
|
|
name: 'Temp Email',
|
|
short_name: 'Temp Email',
|
|
description: 'Temp Email - Temporary Email',
|
|
theme_color: '#ffffff',
|
|
icons: [
|
|
{
|
|
src: '/logo.png',
|
|
sizes: '192x192',
|
|
type: 'image/png'
|
|
}
|
|
]
|
|
}
|
|
})
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
},
|
|
define: {
|
|
'import.meta.env.PACKAGE_VERSION': JSON.stringify(process.env.npm_package_version),
|
|
}
|
|
})
|