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.