From df97555020f3a0363f71469a4a847b72c2aad6d7 Mon Sep 17 00:00:00 2001 From: liufree Date: Tue, 27 May 2025 23:15:33 +0800 Subject: [PATCH] feat: support mobile --- manifest.json | 2 +- vite.config.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 9492a31..00a588b 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "querydash", "name": "QueryDash", - "version": "1.0.7", + "version": "1.0.8", "minAppVersion": "1.8.0", "description": "Refer to Dataview and add search, sorting, and pagination functions, just like Notion.", "author": "lwx", diff --git a/vite.config.js b/vite.config.js index 9a0835e..140ba3c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,7 +5,12 @@ import react from '@vitejs/plugin-react' export default defineConfig(({mode}) => { return { - plugins: [react(),cssInjectedByJsPlugin()], + plugins: [react(), cssInjectedByJsPlugin()], + define: { + 'process.env': { + NODE_ENV: JSON.stringify(mode) + } + }, build: { sourcemap: mode === 'development' ? 'inline' : false, minify: false,