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

View File

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

View File

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