nginx runs pure front-end static resources (mock data projects or pure HTML files)

1. Download nginx

insert image description here

2. Click nginx.exe to run the program, and a black box will pop up after clicking, which means it is running

insert image description here

3. Copy and paste the packaged project dist file (or your other static resource files) into the html folder

insert image description here
insert image description here

4. Enter localhost in the browser and press Enter to open the static resource file we want to run~

insert image description here
Run successfully!
insert image description here

Guess you like

Origin blog.csdn.net/weixin_45288172/article/details/130602326