1 Package the VUE project

  1. Your own project files need to be placed in the SRC folder
  2. After the project is developed, you can type == NPM run build== to do the packaging
  3. After the packaging is complete, the folder dist will be generated, and the structure of the packaged file is as follows
  4. Note the tip below, which tells you that the packaged file needs to be placed on the server to open, not directly in the browser
  5. In this case, we need to use the server to access index.html. Here may be a lot of people will also encounter some problems, such as you may use proxytable in the development of cross-domain problems, there will be no data here, this needs to be solved by the server, Proxytable here is just for the convenience of cross-domain solutions developed by everyone.

Deploy the VUE project online

I deployed it via phpStudy, but I don’t care about memory for now because I’m just looking at it

Download [phpStudy] 1.www.xp.cn/download.ht…)
2. Install [Tap the blackboard]

3. Configure the root directory as your packed directory

The directory where index. HTML resides

Use 4.

Now you can go to http://localhost:9898/