fix lint errors

This commit is contained in:
2022-11-18 01:23:24 +01:00
parent 40fef38017
commit aad9dd3482
9 changed files with 50 additions and 45 deletions

View File

@@ -3,7 +3,9 @@ import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { VitePWA } from 'vite-plugin-pwa';
import packageJson from './package.json' assert { type: 'json' };
// import packageJSON from './package.json' assert { type: 'json' };
import { readFileSync } from 'fs';
const packageJSON = JSON.parse(readFileSync('./package.json'));
// https://vitejs.dev/config/
export default defineConfig({
@@ -24,9 +26,9 @@ export default defineConfig({
start_url: '/',
scope: '/',
display: 'standalone',
name: packageJson.name,
short_name: packageJson.name,
description: packageJson.description,
name: packageJSON.name,
short_name: packageJSON.name,
description: packageJSON.description,
background_color: '#282C34',
theme_color: '#7ACED7',
id: '/',