feat(pages.config.ts):添加uni-ui组件库、sass、sass-loader #1
No files matched your search
@@ -59,6 +59,7 @@
|
|||||||
"@dcloudio/uni-mp-weixin": "3.0.0-4020920240930001",
|
"@dcloudio/uni-mp-weixin": "3.0.0-4020920240930001",
|
||||||
"@dcloudio/uni-mp-xhs": "3.0.0-4020920240930001",
|
"@dcloudio/uni-mp-xhs": "3.0.0-4020920240930001",
|
||||||
"@dcloudio/uni-quickapp-webview": "3.0.0-4020920240930001",
|
"@dcloudio/uni-quickapp-webview": "3.0.0-4020920240930001",
|
||||||
|
"@dcloudio/uni-ui": "^1.5.7",
|
||||||
"@vueuse/core": "^11.2.0",
|
"@vueuse/core": "^11.2.0",
|
||||||
"vue": "~3.4.38",
|
"vue": "~3.4.38",
|
||||||
"vue-i18n": "^9.14.1"
|
"vue-i18n": "^9.14.1"
|
||||||
@@ -92,6 +93,8 @@
|
|||||||
"miniprogram-api-typings": "^4.0.1",
|
"miniprogram-api-typings": "^4.0.1",
|
||||||
"postcss": "^8.4.49",
|
"postcss": "^8.4.49",
|
||||||
"postcss-preset-env": "^10.1.0",
|
"postcss-preset-env": "^10.1.0",
|
||||||
|
"sass": "^1.81.0",
|
||||||
|
"sass-loader": "10.1.1",
|
||||||
"simple-git-hooks": "^2.11.1",
|
"simple-git-hooks": "^2.11.1",
|
||||||
"tailwind-extensions": "^0.22.1",
|
"tailwind-extensions": "^0.22.1",
|
||||||
"tailwindcss": "^3.4.15",
|
"tailwindcss": "^3.4.15",
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
|
import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
|
||||||
|
|
||||||
export default defineUniPages({
|
export default defineUniPages({
|
||||||
|
easycom: {
|
||||||
|
autoscan: true,
|
||||||
|
custom: {
|
||||||
|
// uni-ui 规则如下配置
|
||||||
|
'^uni-(.*)': '@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue',
|
||||||
|
},
|
||||||
|
},
|
||||||
pages: [],
|
pages: [],
|
||||||
globalStyle: {
|
globalStyle: {
|
||||||
backgroundColor: '@bgColor',
|
backgroundColor: '@bgColor',
|
||||||
|
|||||||
Generated
+726
-146
File diff suppressed because it is too large.
Load diff
+6
-1
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"easycom": {
|
||||||
|
"autoscan": true,
|
||||||
|
"custom": {
|
||||||
|
"^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
|
||||||
|
}
|
||||||
|
},
|
||||||
"pages": [
|
"pages": [
|
||||||
{
|
{
|
||||||
"path": "pages/feed-plan/index",
|
"path": "pages/feed-plan/index",
|
||||||
@@ -27,6 +33,5 @@
|
|||||||
"navigationBarTitleText": "Vitesse-Uni",
|
"navigationBarTitleText": "Vitesse-Uni",
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
},
|
},
|
||||||
"__esModule": true,
|
|
||||||
"subPackages": []
|
"subPackages": []
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user