1.1.2 • Published 2 years ago

compile2ant v1.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

compile2ant

npm NPM npm

wepy2.0.x 编译为支付宝小程序代码插件

安装

测试未覆盖支付宝小程序的所有api
如编译后不能正常运行,请提交 issue 或直接 pr,会及时进行兼容

npm install compile2ant --save-dev

配置

wepy.config.js

const antPlugin = require('compile2ant');

module.exports = {
  ...
  plugins: [
    antPlugin()
  ],
  ...
}

编译

直接执行以下命令

./node_modules/.bin/wepy build -o ant -t ant --watch

或在 package.json添加scripts如下, 可执行 npm run ant 进行编译

{
  "name": "xxx",
  "version": "0.0.2",
  "description": "A WePY project",
  "main": "weapp/app.js",
  "scripts": {
    ...
    "ant": "./node_modules/.bin/wepy build -o ant -t ant --watch",
    ...
  },
  ...
 }

重要的事情

支付宝小程序 启用 component2 编译 一定要开启
支付宝小程序 启用 component2 编译 一定要开启
支付宝小程序 启用 component2 编译 一定要开启

MIT

1.1.1

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

3 years ago

1.0.7

4 years ago

1.0.6

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago