[uniapp] uniapp package H5 (web page):


1. Set appid:

注意】appid is the project's ( 不是成员无法打包)
insert image description here

insert image description here

insert image description here

Second, set the router:

insert image description here

If the router is not set:
insert image description here

3. Packaging:

[1] CLI publish uni-app to H5: https://hx.dcloud.net.cn/cli/publish-h5

insert image description here
insert image description here
[ 注意] The cli command packs h5 and reports an error: the positional formal parameter that accepts the actual parameter "--platform" cannot be found

insert image description here
insert image description here

【2】HBuilderX

Release = "Website - PC or h5... =" Release

Fourth, the final effect:

insert image description here

Guess you like

Origin blog.csdn.net/weixin_53791978/article/details/132217426