feat: support mobile

This commit is contained in:
liufree 2025-05-27 23:15:33 +08:00
parent ca5c6f11c2
commit df97555020
2 changed files with 7 additions and 2 deletions

View file

@ -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",

View file

@ -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,