Front-end initialization project steps

1. Install vue scaffolding

Reference: Vue Scaffolding (vue-cli) Construction_Yue Zhengming's Blog-CSDN Blog

2. Create a project through vue scaffolding

Enter vue ui in the cmd terminal to enter the visual interface to create a project

vue ui

 3. Configure vue routing

4. Configure the Element UI component library

5. Configure the axios library

6. Initialize the git remote warehouse

7. Host the local project on git

Question 1: After using less on the vue2 project, after installing less and less-laoder, the following question is prompted when compiling the project:
Module build failed (from ./node_modules/less-loader/dist/cjs.js): TypeError: this .getOptions is not a function

Reason: The version is too high, the easiest solution is to lower the version, so we want to solve the problem without changing the configuration, and downgrade to 7.3.0

cnpm install [email protected] --save-dev

Guess you like

Origin blog.csdn.net/weixin_38023225/article/details/120348830