72.vue development tool node. JS and Build Tool Webpack

Source: Internet
Author: User

1. Concept

  node. JS: A service platform that can run JavaScript, which can be used as a back-end program, except that its development language is JavaScript

(Typically, JavaScript runs in a browser, so the ability of JavaScript is limited to the permissions that the browser can give it.) For example, read and write local system files such operations, in general, the JavaScript code running in the browser does not have this permission to operate. What if we want to use JavaScript to write some programs that can run on the operating system and have the functionality of a programming language like Php,java? Node. JS solves this problem. node. JS is a server-side JavaScript runtime environment that enables you to write standalone programs with JavaScript through node. js. )

 Npm:node.js Package Manager, the equivalent of a python pip

( traditional development, jquery.js are mostly Baidu search, then go to the official website to download, or directly into the CDN resources, this method is too cumbersome. If you encounter other packages in the future and the package has dependencies on the other packages, it will be very difficult for us to introduce a package into our own project. Now that we have NPM, this package manager can be introduced directly through the npm install XXX package name, such as npm install Vue, which automatically imports the package under the current project folder. and NPM automatically downloads the other packages that the Vue package relies on )

  Webpack: A front-end packaging and build tool

  (Because a single-page application uses a lot of footage, if each of the footage is introduced in the HTML with the SRC attribute or link, then when requesting a page, it is possible for the browser to initiate more than 10 requests, often the requested resources are some script code or a small picture, the resources themselves are only a few K , the download is not required for 1 seconds, but because HTTP is the application layer protocol, its lower layer is the TCP Transport layer protocol, the TCP handshake and wave process may take longer than the download resources themselves, so need to package these small files into a file, so long as a TCP handshake and wave process, A number of resources to download down, and multiple resources because all are sharing an HTTP request, so the head and other parts are also shared, equivalent to form a scale effect, so that the page display faster, user experience better. )

  Vue-cli:vue.js's scaffolding tools. The plain is an automatic help you to build a good project directory, configuration of Webpack, as well as a variety of dependent package tools, through the NPM install vue-cli-g installation,-G for the global installation

72.vue development tool node. JS and Build Tool Webpack

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.