build(dependencies): 更新依赖版本并调整样式语言

- 更新 @dcloudio/uni-* 包版本至 3.0.0-alpha-4030220241101001
- 移除 @rollup/plugin-node-resolve 依赖- 将 App.vue 中的样式语言从 scss 改为 css
This commit is contained in:
h_cg 2024-11-09 16:08:19 +08:00
parent 8cd6ff628e
commit 6c6c3e71c5
3 changed files with 36 additions and 37 deletions

View File

@ -1,6 +1,5 @@
import type { PluginOption } from 'vite'; import type { PluginOption } from 'vite';
import uni from '@dcloudio/vite-plugin-uni'; import uni from '@dcloudio/vite-plugin-uni';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import { visualizer } from 'rollup-plugin-visualizer'; import { visualizer } from 'rollup-plugin-visualizer';
import autoImport from 'unplugin-auto-import/vite'; import autoImport from 'unplugin-auto-import/vite';
import viteRestart from 'vite-plugin-restart'; import viteRestart from 'vite-plugin-restart';
@ -15,7 +14,6 @@ export function createVitePlugins({ isProd }: VitePluginConfig): PluginOption[]
return [ return [
// @ts-expect-error TODO uni() 会报错uni is not a function,暂时使用此方式解决 // @ts-expect-error TODO uni() 会报错uni is not a function,暂时使用此方式解决
uni?.default(), uni?.default(),
nodeResolve(),
uvtw({ uvtw({
rem2rpx: true, rem2rpx: true,
disabled: WeappTailwindcssDisabled, disabled: WeappTailwindcssDisabled,

View File

@ -43,64 +43,65 @@
"version:major": "commit-and-tag-version --release-as major" "version:major": "commit-and-tag-version --release-as major"
}, },
"dependencies": { "dependencies": {
"@alova/adapter-uniapp": "^2.0.7", "@alova/adapter-uniapp": "^2.0.9",
"@alova/mock": "^2.0.7", "@alova/mock": "^2.0.9",
"@dcloudio/uni-app": "3.0.0-alpha-4030120241009001", "@alova/shared": "^1.1.0",
"@dcloudio/uni-app-plus": "3.0.0-alpha-4030120241009001", "@dcloudio/uni-app": "3.0.0-alpha-4030220241101001",
"@dcloudio/uni-components": "3.0.0-alpha-4030120241009001", "@dcloudio/uni-app-plus": "3.0.0-alpha-4030220241101001",
"@dcloudio/uni-h5": "3.0.0-alpha-4030120241009001", "@dcloudio/uni-components": "3.0.0-alpha-4030220241101001",
"@dcloudio/uni-i18n": "3.0.0-alpha-4030120241009001", "@dcloudio/uni-h5": "3.0.0-alpha-4030220241101001",
"@dcloudio/uni-mp-alipay": "3.0.0-alpha-4030120241009001", "@dcloudio/uni-i18n": "3.0.0-alpha-4030220241101001",
"@dcloudio/uni-mp-baidu": "3.0.0-alpha-4030120241009001", "@dcloudio/uni-mp-alipay": "3.0.0-alpha-4030220241101001",
"@dcloudio/uni-mp-kuaishou": "3.0.0-alpha-4030120241009001", "@dcloudio/uni-mp-baidu": "3.0.0-alpha-4030220241101001",
"@dcloudio/uni-mp-lark": "3.0.0-alpha-4030120241009001", "@dcloudio/uni-mp-kuaishou": "3.0.0-alpha-4030220241101001",
"@dcloudio/uni-mp-qq": "3.0.0-alpha-4030120241009001", "@dcloudio/uni-mp-lark": "3.0.0-alpha-4030220241101001",
"@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4030120241009001", "@dcloudio/uni-mp-qq": "3.0.0-alpha-4030220241101001",
"@dcloudio/uni-mp-weixin": "3.0.0-alpha-4030120241009001", "@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4030220241101001",
"@dcloudio/uni-quickapp-webview": "3.0.0-alpha-4030120241009001", "@dcloudio/uni-mp-weixin": "3.0.0-alpha-4030220241101001",
"@dcloudio/uni-quickapp-webview": "3.0.0-alpha-4030220241101001",
"@multiavatar/multiavatar": "^1.0.7", "@multiavatar/multiavatar": "^1.0.7",
"alova": "^3.1.0", "alova": "^3.2.2",
"crypto-js": "^4.2.0", "crypto-js": "^4.2.0",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"pinia": "^2.2.4", "pinia": "^2.2.6",
"vue": "^3.5.12" "vue": "^3.5.12"
}, },
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "^3.7.3", "@antfu/eslint-config": "^3.8.0",
"@dcloudio/types": "^3.4.12", "@dcloudio/types": "^3.4.14",
"@dcloudio/uni-automator": "3.0.0-alpha-4030120241009001", "@dcloudio/uni-automator": "3.0.0-alpha-4030220241101001",
"@dcloudio/uni-cli-shared": "3.0.0-alpha-4030120241009001", "@dcloudio/uni-cli-shared": "3.0.0-alpha-4030220241101001",
"@dcloudio/uni-stacktracey": "3.0.0-alpha-4030120241009001", "@dcloudio/uni-stacktracey": "3.0.0-alpha-4030220241101001",
"@dcloudio/uni-uts-v1": "3.0.0-alpha-4030120241009001", "@dcloudio/uni-uts-v1": "3.0.0-alpha-4030220241101001",
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-4030120241009001", "@dcloudio/vite-plugin-uni": "3.0.0-alpha-4030220241101001",
"@egoist/tailwindcss-icons": "^1.8.1", "@egoist/tailwindcss-icons": "^1.8.1",
"@iconify/json": "^2.2.259", "@iconify/json": "^2.2.270",
"@rollup/plugin-node-resolve": "^15.3.0", "@rollup/plugin-node-resolve": "^15.3.0",
"@types/crypto-js": "^4.2.2", "@types/crypto-js": "^4.2.2",
"@types/lodash-es": "^4.17.12", "@types/lodash-es": "^4.17.12",
"@types/node": "^20.16.11", "@types/node": "^20.17.6",
"@vitejs/plugin-vue": "^5.1.4", "@vitejs/plugin-vue": "^5.1.4",
"@vue/runtime-core": "^3.5.12", "@vue/runtime-core": "^3.5.12",
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"commit-and-tag-version": "^12.5.0", "commit-and-tag-version": "^12.5.0",
"eslint": "^9.12.0", "eslint": "^9.14.0",
"eslint-plugin-format": "^0.1.2", "eslint-plugin-format": "^0.1.2",
"globals": "^15.11.0", "globals": "^15.12.0",
"lint-staged": "^15.2.10", "lint-staged": "^15.2.10",
"picocolors": "^1.1.0", "picocolors": "^1.1.1",
"postcss": "^8.4.47", "postcss": "^8.4.47",
"rollup-plugin-visualizer": "^5.12.0", "rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.79.5", "sass": "^1.80.6",
"simple-git-hooks": "^2.11.1", "simple-git-hooks": "^2.11.1",
"tailwindcss": "^3.4.13", "tailwindcss": "^3.4.14",
"tsx": "^4.19.1", "tsx": "^4.19.2",
"typescript": "^5.6.3", "typescript": "^5.6.3",
"uni-mini-router": "^0.1.6", "uni-mini-router": "^0.1.6",
"uni-read-pages-vite": "^0.0.6", "uni-read-pages-vite": "^0.0.6",
"unplugin-auto-import": "^0.18.3", "unplugin-auto-import": "^0.18.3",
"vite": "^5.4.8", "vite": "^5.4.10",
"vite-plugin-restart": "^0.4.1", "vite-plugin-restart": "^0.4.1",
"weapp-tailwindcss": "^3.5.3" "weapp-tailwindcss": "^3.7.0"
}, },
"simple-git-hooks": { "simple-git-hooks": {
"pre-commit": "npx lint-staged", "pre-commit": "npx lint-staged",

View File

@ -15,7 +15,7 @@ onHide(() => {
}); });
</script> </script>
<style lang="scss"> <style lang="css">
@import 'tailwindcss/base'; @import 'tailwindcss/base';
@import 'tailwindcss/utilities'; @import 'tailwindcss/utilities';
@import 'tailwindcss/components'; @import 'tailwindcss/components';