Vue+webpack engineering environment construction

Use the Vue-cli scaffolding (belonging to the vue family bucket) to quickly build a project:

[1] First, you need to install node.js;

[2] Install webpack, command $npm install -g webpack; //If you have installed it before, you can use $webpack -v to view the current webpack version;

[3] Install Vue-cli, command $npm install -g vue-cli;

[4] $Vue init webpack projectName ;//Generate project name

[5] $cd projectName; //Enter the project directory

[6] $npm install; //Initialize related dependency installation

[7] $npm run dev //Development environment view page

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325672687&siteId=291194637