vue scaffolding to create a project through the ui interface

vue scaffold provides a graphical interface operation project, than before the operation command by the even simpler form, the following steps are used:

1, the global installed @ vue / cli scaffolding tool

npm i @ vue / cli -g {use Taobao mirror: the install NPM = -g CNPM --registry HTTPS: //registry.npm.taobao.org }

2, start to create a GUI Project Wizard, win + r, cmd, enter:

ui view

3, click Create, select the installation path,

   Details: Enter a project name, select the package manager npm, initialize the Git repository fill: init project, click Next.

 

Default: select Manual.

Function: Select Bable, Router, Liner | Formatter and use the configuration of

Configuration:

      1)Use history made for router?(关闭)

      2)pick a Linter ...  Select(选择ESLint + Standard config)

      3) Lint on save calibration time will automatically format (dakai save)

4, after the completion of the above, start configuring ElementUI component library, select the plug-in, enter: vue-cli-plugin-element, Download

     1)How  ... install element : 选择 import on demand

     2) language mode: zh-CN (default) (default on the line)

5, the configuration axios library, selection dependent, installation input axios

 

Guess you like

Origin www.cnblogs.com/sylys/p/11950148.html