move title and description to package.json
This commit is contained in:
@@ -2,13 +2,9 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<link rel="icon" href="/favicon.ico">
|
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
||||||
<title>Instacode</title>
|
<title>Instacode</title>
|
||||||
<meta name="description" content="Scratchpad for instant JavaScript code running">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
<link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-180x180.png" sizes="180x180">
|
<link rel="icon" href="/favicon.ico">
|
||||||
<link rel="mask-icon" href="/img/icons/android-chrome-maskable-192x192.png" color="#7ACED7">
|
|
||||||
<meta name="theme-color" content="#7ACED7">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "instacode-app",
|
"name": "Instacode",
|
||||||
|
"description": "Scratchpad for instant JavaScript code running",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { fileURLToPath, URL } from 'node:url';
|
|||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import vue from '@vitejs/plugin-vue';
|
import vue from '@vitejs/plugin-vue';
|
||||||
import { VitePWA } from 'vite-plugin-pwa';
|
import { VitePWA } from 'vite-plugin-pwa';
|
||||||
|
import packageJson from './package.json' assert { type: 'json' };
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@@ -15,10 +16,11 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
|
|
||||||
manifest: {
|
manifest: {
|
||||||
name: 'Instacode',
|
name: packageJson.name,
|
||||||
short_name: 'Instacode',
|
short_name: packageJson.name,
|
||||||
description: 'Scratchpad for instant JavaScript code running',
|
description: packageJson.description,
|
||||||
theme_color: '#7ACED7',
|
theme_color: '#7ACED7',
|
||||||
|
background_color: '#282C34',
|
||||||
id: '/',
|
id: '/',
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user