Webpack+vue+iview using VUE-CLI scaffold to build

Source: Internet
Author: User

1. Installing the NODEJS Environment

Download node. js. After the installation is successful, the console input node-v the version number, and the installation is successful.

If the version number does not appear, but the node is not an internal command, you need to configure the environment variable, if the version number has occurred, this step can be ignored. Cut the path where node is installed, right--My computer--and the Advanced system environment settings--environment variables--Find the PATH environment variable. Add the installation path of the replicated node.

2. You can enter a command at the console to see if the NPM Npm-v has been successfully installed, if the version number indicates that the installation was successful,

3. Below we can proceed, Vue scaffolding installed is vue-cli, in the console input NPM install-g vue-cli (Note: Try to use global installation), waiting to complete the installation.

4. We use the Webpake template to generate a project VUE init webpack file name that appears as follows when the installation is successful

5. Install package dependent on NPM install

6. When the installation is complete we execute, NPM run Dev runs. If the console appears, the following scenario indicates that the project has started.

When the browser enters localhost:8080, the following interface appears:

So, Vue, we're set up, now we're integrating iview.

7. Installing iview NPM Install iview Save using Scaffolding

8. After successful add Iview-loader loader NPM install Iview-loader--save-Dev

Webpack+vue+iview using VUE-CLI scaffold to build

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.