Eight, Vue cli3 detailed study notes

One, get to know Vue CLI3

1.1 There is a big difference between vue-cli 3 and 2 versions:

  • vue-cli 3 is based on webpack 4, vue-cli 2 or webapck 3
  • The design principle of vue-cli 3 is "0 configuration", the root directory of the removed configuration file, the build and config directories
  • vue-cli 3 provides vue ui commands, provides visual configuration, and is more user-friendly
  • Removed the static folder, added a public folder, and moved index.html to public

Insert picture description here

1.2 Detailed directory structure

Insert picture description here

1.3 Where did the configuration go?

UI configuration

  • Start the configuration server: vue ui

Insert picture description here

Insert picture description here

1.4 Modify the configuration file

Create a new configuration file, vue.config.js file:
custom configuration: alias
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44827418/article/details/113400767