1.安装 node 加装 component组件执行: npm install -g component 如下

2.执行 component -V 查看是否安装完毕

3.执行 component build 注意:当前文件夹必须有 component.json 在pomelo web-server/public/js/lib 下,会根据 local 文件夹下面 index.js require内容打包到build文件夹下面, 我的配置如下:


本文介绍了如何使用Node.js全局安装Component组件,并通过命令检查安装状态。同时,详细说明了如何利用Component进行项目构建,包括所需的配置文件及构建流程。
1.安装 node 加装 component组件执行: npm install -g component 如下

2.执行 component -V 查看是否安装完毕

3.执行 component build 注意:当前文件夹必须有 component.json 在pomelo web-server/public/js/lib 下,会根据 local 文件夹下面 index.js require内容打包到build文件夹下面, 我的配置如下:



被折叠的 条评论
为什么被折叠?