uniapp is packaged as H5 and run locally

First record a convenient operation

In the folder directory, enter cmd and press Enter to directly open the terminal and navigate to the directory

insert image description here

insert image description here
insert image description here

1. First package it into H5
insert image description here

or
issue as below
insert image description here

These things don't need to be filled
insert image description here

2. Find the root directory of the project
insert image description here

3. Install npm install http-server -g globally
insert image description here

4. Enter the packaging directory
insert image description here

5. Run the terminal: http-server
insert image description here

6. Just enter the URL in the browser

Guess you like

Origin blog.csdn.net/qq_44871531/article/details/130847012