Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

字节小程序构建npm包 #1

Open
lYC92 opened this issue Feb 4, 2021 · 3 comments
Open

字节小程序构建npm包 #1

lYC92 opened this issue Feb 4, 2021 · 3 comments

Comments

@lYC92
Copy link

lYC92 commented Feb 4, 2021

运行 npm install tt-f2 --save 后,没有找到字节小程序工具如何构建npm包的方法,弱弱的求指导。

@PieNam
Copy link
Owner

PieNam commented Apr 27, 2021

同学说的构建 npm 包是指?如果同学是用小程序原生写的,应该可以 install 后通过 require 引入;如果是使用 uni-app / remax / taro 这样的封装框架,则可以直接使用。
抱歉回复较晚,如果还有问题可以再交流🙏

@lYC92
Copy link
Author

lYC92 commented Apr 29, 2021

飞书小程序开发工具没有像微信小程序一样提供“构建npm”和“使用npm”选项,通过install后require导入会报错

@PieNam
Copy link
Owner

PieNam commented Apr 30, 2021

飞书小程序开发工具没有像微信小程序一样提供“构建npm”和“使用npm”选项,通过install后require导入会报错

噢,抱歉同学,字节小程序 IDE 目前还没有支持 npm 构建,要使用工具应该要拉一份代码放进去作为项目文件;如果使用上面提到的框架会轻松一些,直接支持基本工程能力。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants