Using HBuilder to package the front-end to develop webapp as apk, hbuilderapk

Source: Internet
Author: User

Using HBuilder to package the front-end to develop webapp as apk, hbuilderapk

The current front-end development can be said to be something that can be done in full bloom and nothing else can be done. Today we will briefly introduce the use of vue, how to package a single-page application developed by ng or react into an apk and run it on a mobile device.

Here we use vue as an example. You can find the relevant information based on your own situation.

Step 1,Node needs to be installed. If it is a front-end er, this should not be described too much.

Step 2,Use the vue-cli tool to initialize the vue project. This is just a test project. Therefore, no installation is required for vue-router and other things. The actual project is based on the actual situation.

Step 3,Regular development, such as functions to be implemented.

Step 4,After the development is complete, you need to configure the following configurations before the project is an online project:


The above is the configuration before packaging.

Step 5,Package the project.


Step 6,Start HBuilder and package it as apk. File-open the Directory and select the dist directory of the project you just created. The project name is casual. Here it is dist.


Right-click a project and convert it to a mobile Project


When the project image is displayed as a, you can. The next step is to set the startup icon and other information. Directly click the json file and the setting interface will be displayed.


And then released to the original sound application.


Set it.



After packaging, you can view the effect of the apk file on your phone.

The above method of using HBuilder to package the front-end to develop webapp for apk is to share all the content with you, hoping to give you a reference, and hope you can also support the help house.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.