deps: upgrade vite & remove i18n for now
This commit is contained in:
@@ -1,62 +1,60 @@
|
||||
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import path from 'path'
|
||||
import { defineConfig, type UserConfigExport } from 'vite'
|
||||
import { VitePWA } from 'vite-plugin-pwa'
|
||||
import vue from "@vitejs/plugin-vue"
|
||||
import path from "path"
|
||||
import { defineConfig, type UserConfigExport } from "vite"
|
||||
import { VitePWA } from "vite-plugin-pwa"
|
||||
|
||||
const mainColor = '#ffffff'
|
||||
const mainColor = "#ffffff"
|
||||
|
||||
export default defineConfig(({ command }) => {
|
||||
const config: UserConfigExport = {
|
||||
plugins: [
|
||||
vue(),
|
||||
VueI18nPlugin({}),
|
||||
VitePWA({
|
||||
registerType: 'prompt',
|
||||
registerType: "prompt",
|
||||
includeAssets: [
|
||||
'favicon.ico',
|
||||
'apple-touch-icon.png',
|
||||
'masked-icon.svg',
|
||||
'assets/*.svg'
|
||||
"favicon.ico",
|
||||
"apple-touch-icon.png",
|
||||
"masked-icon.svg",
|
||||
"assets/*.svg",
|
||||
],
|
||||
manifest: {
|
||||
name: 'Lite Note',
|
||||
short_name: 'LiteNote',
|
||||
description: 'Lite note taking',
|
||||
name: "Lite Note",
|
||||
short_name: "LiteNote",
|
||||
description: "Lite note taking",
|
||||
background_color: mainColor,
|
||||
theme_color: mainColor,
|
||||
icons: [
|
||||
{
|
||||
src: 'pwa-192x192.png',
|
||||
sizes: '192x192',
|
||||
type: 'image/png'
|
||||
src: "pwa-192x192.png",
|
||||
sizes: "192x192",
|
||||
type: "image/png",
|
||||
},
|
||||
{
|
||||
src: 'pwa-512x512.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png'
|
||||
src: "pwa-512x512.png",
|
||||
sizes: "512x512",
|
||||
type: "image/png",
|
||||
},
|
||||
{
|
||||
src: 'masked-icon.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png',
|
||||
purpose: 'maskable'
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
src: "masked-icon.png",
|
||||
sizes: "512x512",
|
||||
type: "image/png",
|
||||
purpose: "maskable",
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
'node-fetch': 'isomorphic-fetch'
|
||||
}
|
||||
}
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
"node-fetch": "isomorphic-fetch",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
if (command === 'serve') {
|
||||
if (command === "serve") {
|
||||
config.define = {
|
||||
global: {}
|
||||
global: {},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user