From 3b5822c13544056716e06450250b80931e8b166b Mon Sep 17 00:00:00 2001 From: lachie-underhill Date: Mon, 5 Jun 2023 15:01:51 +1000 Subject: [PATCH] Add vite preview script --- package.json | 1 + src/store/index.ts | 1 - tsconfig.json | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 290fdbd..930ae61 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "scripts": { "dev": "vite", "build": "vite build", + "preview": "vite preview", "lint": "eslint . --ext .js,.vue,.ts --ignore-path .gitignore", "lint:fix": "lint --fix", "prepare": "husky install" diff --git a/src/store/index.ts b/src/store/index.ts index 9a19b89..e2d1286 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -205,7 +205,6 @@ export const useGeneralStore = defineStore('general', { migrateV2StateIfExists() { const v2data = localStorage.getItem('vuex') - console.log(v2data) if (v2data === null || v2data === '') return const v2state = JSON.parse(v2data) diff --git a/tsconfig.json b/tsconfig.json index 53dbcca..e64a10c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "@vue/tsconfig/tsconfig.dom.json", "include": ["**/*.ts", "**/*.js", "**/*.vue"], - "exclude": ["src/**/__tests__/*", "node_modules"], + "exclude": ["src/**/__tests__/*", "node_modules", "dist"], "compilerOptions": { "allowJs": true, "baseUrl": ".",