mirror of
https://gitee.com/h_mo/uniapp-vue3-vite-ts-template
synced 2025-04-06 03:58:03 +08:00
test: ios运行测试成功
This commit is contained in:
parent
7345545440
commit
3fb5b3de0a
39
package.json
39
package.json
@ -45,19 +45,19 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@alova/adapter-uniapp": "^2.0.6",
|
"@alova/adapter-uniapp": "^2.0.6",
|
||||||
"@alova/mock": "^2.0.6",
|
"@alova/mock": "^2.0.6",
|
||||||
"@dcloudio/uni-app": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-app": "3.0.0-alpha-4030120241009001",
|
||||||
"@dcloudio/uni-app-plus": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-app-plus": "3.0.0-alpha-4030120241009001",
|
||||||
"@dcloudio/uni-components": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-components": "3.0.0-alpha-4030120241009001",
|
||||||
"@dcloudio/uni-h5": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-h5": "3.0.0-alpha-4030120241009001",
|
||||||
"@dcloudio/uni-i18n": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-i18n": "3.0.0-alpha-4030120241009001",
|
||||||
"@dcloudio/uni-mp-alipay": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-mp-alipay": "3.0.0-alpha-4030120241009001",
|
||||||
"@dcloudio/uni-mp-baidu": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-mp-baidu": "3.0.0-alpha-4030120241009001",
|
||||||
"@dcloudio/uni-mp-kuaishou": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-mp-kuaishou": "3.0.0-alpha-4030120241009001",
|
||||||
"@dcloudio/uni-mp-lark": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-mp-lark": "3.0.0-alpha-4030120241009001",
|
||||||
"@dcloudio/uni-mp-qq": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-mp-qq": "3.0.0-alpha-4030120241009001",
|
||||||
"@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4030120241009001",
|
||||||
"@dcloudio/uni-mp-weixin": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-mp-weixin": "3.0.0-alpha-4030120241009001",
|
||||||
"@dcloudio/uni-quickapp-webview": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-quickapp-webview": "3.0.0-alpha-4030120241009001",
|
||||||
"@multiavatar/multiavatar": "^1.0.7",
|
"@multiavatar/multiavatar": "^1.0.7",
|
||||||
"alova": "^3.0.20",
|
"alova": "^3.0.20",
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
@ -68,10 +68,11 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "^3.7.3",
|
"@antfu/eslint-config": "^3.7.3",
|
||||||
"@dcloudio/types": "^3.4.12",
|
"@dcloudio/types": "^3.4.12",
|
||||||
"@dcloudio/uni-automator": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-automator": "3.0.0-alpha-4030120241009001",
|
||||||
"@dcloudio/uni-cli-shared": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-cli-shared": "3.0.0-alpha-4030120241009001",
|
||||||
"@dcloudio/uni-stacktracey": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-stacktracey": "3.0.0-alpha-4030120241009001",
|
||||||
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-4030120240925001",
|
"@dcloudio/uni-uts-v1": "3.0.0-alpha-4030120241009001",
|
||||||
|
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-4030120241009001",
|
||||||
"@egoist/tailwindcss-icons": "^1.8.1",
|
"@egoist/tailwindcss-icons": "^1.8.1",
|
||||||
"@iconify/json": "^2.2.258",
|
"@iconify/json": "^2.2.258",
|
||||||
"@rollup/plugin-node-resolve": "^15.3.0",
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
||||||
@ -81,7 +82,7 @@
|
|||||||
"@vitejs/plugin-vue": "^5.1.4",
|
"@vitejs/plugin-vue": "^5.1.4",
|
||||||
"@vue/runtime-core": "^3.5.11",
|
"@vue/runtime-core": "^3.5.11",
|
||||||
"autoprefixer": "^10.4.20",
|
"autoprefixer": "^10.4.20",
|
||||||
"commit-and-tag-version": "^12.4.4",
|
"commit-and-tag-version": "^12.5.0",
|
||||||
"eslint": "^9.12.0",
|
"eslint": "^9.12.0",
|
||||||
"eslint-plugin-format": "^0.1.2",
|
"eslint-plugin-format": "^0.1.2",
|
||||||
"globals": "^15.11.0",
|
"globals": "^15.11.0",
|
||||||
@ -89,7 +90,7 @@
|
|||||||
"picocolors": "^1.1.0",
|
"picocolors": "^1.1.0",
|
||||||
"postcss": "^8.4.47",
|
"postcss": "^8.4.47",
|
||||||
"rollup-plugin-visualizer": "^5.12.0",
|
"rollup-plugin-visualizer": "^5.12.0",
|
||||||
"sass": "^1.79.4",
|
"sass": "^1.79.5",
|
||||||
"simple-git-hooks": "^2.11.1",
|
"simple-git-hooks": "^2.11.1",
|
||||||
"tailwindcss": "^3.4.13",
|
"tailwindcss": "^3.4.13",
|
||||||
"tsx": "^4.19.1",
|
"tsx": "^4.19.1",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onHide, onLaunch, onShow } from '@dcloudio/uni-app';
|
|
||||||
import { useUserStore } from '@/stores/modules/user';
|
import { useUserStore } from '@/stores/modules/user';
|
||||||
|
import { onHide, onLaunch, onShow } from '@dcloudio/uni-app';
|
||||||
|
|
||||||
onLaunch(() => {
|
onLaunch(() => {
|
||||||
console.log('App Launch');
|
console.log('App Launch');
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import type { UserConfig } from 'vite';
|
||||||
/**
|
/**
|
||||||
* vite 配置
|
* vite 配置
|
||||||
* @see https://cn.vitejs.dev/config/
|
* @see https://cn.vitejs.dev/config/
|
||||||
@ -5,11 +6,10 @@
|
|||||||
*/
|
*/
|
||||||
import { resolve } from 'node:path';
|
import { resolve } from 'node:path';
|
||||||
import process from 'node:process';
|
import process from 'node:process';
|
||||||
import type { UserConfig } from 'vite';
|
|
||||||
import { defineConfig, loadEnv } from 'vite';
|
|
||||||
import TransformPages from 'uni-read-pages-vite';
|
import TransformPages from 'uni-read-pages-vite';
|
||||||
import postcssPlugins from './postcss.config';
|
import { defineConfig, loadEnv } from 'vite';
|
||||||
import { createVitePlugins, currentPlatform, resolveProxy } from './build';
|
import { createVitePlugins, currentPlatform, resolveProxy } from './build';
|
||||||
|
import postcssPlugins from './postcss.config';
|
||||||
|
|
||||||
export default defineConfig(async ({ mode }) => {
|
export default defineConfig(async ({ mode }) => {
|
||||||
const root = process.cwd();
|
const root = process.cwd();
|
||||||
@ -36,6 +36,8 @@ export default defineConfig(async ({ mode }) => {
|
|||||||
preprocessorOptions: {
|
preprocessorOptions: {
|
||||||
scss: {
|
scss: {
|
||||||
additionalData: '@import "./src/uni.scss";',
|
additionalData: '@import "./src/uni.scss";',
|
||||||
|
api: 'modern-compiler', // 或 'modern' 表示使用现代编译器
|
||||||
|
silenceDeprecations: ['legacy-js-api'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
postcss: {
|
postcss: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user