kuaiyi-campus

0.0.6 • Public • Published

快意校园

安装

命令安装

npm i kuaiyi-campus

小程序npm初始化

【小程序开发者工具】->【菜单】->【工具】->【构建npm】

相关配置

app.json

"resolveAlias": {
   "@app/*": "/*",
   "@kuaiyi-campus/*": "/miniprogram_npm/kuaiyi-campus/*"
},
"useExtendedLib": {
   "weui": true
}

app.wxss

@import "/miniprogram_npm/kuaiyi-campus/css/global";

使用方式

resolveAlias使用

仅能够在require中使用resolveAlias规则

.json

{
  "k-...": "kuaiyi-campus/components/.../index"
}

.js

const aaa = require("@kuaiyi-campus/utils/...);

wxss

import "/miniprogram_npm/kuaiyi-campus/css/...";

wxml

import "/miniprogram_npm/kuaiyi-campus/utils/...";

相关文件

在根目录创建global.js, 并写入基础配置

Readme

Keywords

Package Sidebar

Install

npm i kuaiyi-campus

Weekly Downloads

0

Version

0.0.6

License

ISC

Unpacked Size

1.57 MB

Total Files

90

Last publish

Collaborators

  • jadesman