Recently, when using element-ui to build a project, I found it unfriendly for beginners to configure various files to run element-ui only with webpack.
Think of using vue-cli to build the entire Vue project.
1.Install node.js
2.Install webpack
Global install webpack command
npm install webpack -g
3.Installation of Taobao mirror [fast speed children’s shoes can be omitted].
1 npm install -g cnpm --registry=https://registry.npm.taobao.org
4.vueScaffold global installation — used to generate Vue templates
npm install -g vue-cli
Understanding it as a way to get you started quickly without wasting time compiling or other trivial things is essentially to give you a set of file structures that contain basic dependency Libraries
5.Use scaffolding to build Vue project — all the way back.
vue init webpack
6.element-uiinstall
npm i element-ui
7.Dependency installation
npm install
8.Running project
npm run dev
Run successfully!