vue scaffolding and create a project webpack

vue scaffolding and create a project webpack

1 Create a folder
2 Download scaffolding npm install --global VUE-cli
3 webpack initialize the project using VUE the init webpack My-Project
4 project some configuration
Project name Project name (the Enter)
  Porject the Description Item Description (the Enter)
  Author (the Enter )
vue Build what created (the Enter)
 the install Router is installed vue vue-routing (y)
 use eslint ... whether eslint check your code (n) If you choose y then Enter
 set up unit tests ... tests (n)
 the SET up e2e ... test (the n-)
 yes ... use NPM (the Enter)
Here Insert Picture Description
5 to this project is good initialization

6 In the project is automatically generated, index.js file under config, you need to do is modify the module dev in export in proxyTable set the path of another name
needs to host into their computer ip address
port is to start service port number, the other does not need modifications

Published 17 original articles · won praise 0 · Views 419

Guess you like

Origin blog.csdn.net/weixin_44805161/article/details/103793940