Home >Web Front-end >Front-end Q&A >What is the difference between vue.min.js and vue.js

What is the difference between vue.min.js and vue.js

青灯夜游
青灯夜游Original
2021-09-27 18:59:426552browse

Difference: 1. vue.js is the development environment version, including complete warnings and debugging mode; while "vue.min.js" is the production environment version, with warnings removed. 2. vue.js is a complete uncompressed version, and the file is relatively large; while "vue.min.js" is a compressed version, which reduces the file size.

What is the difference between vue.min.js and vue.js

The operating environment of this tutorial: windows7 system, vue2.9.6 version, DELL G3 computer.

Vue (pronounced /vjuː/, similar to view) is a progressive JavaScript framework for building user interfaces, designed to better organize and simplify web development. Unlike other large frameworks, Vue is designed to be applied layer by layer from the bottom up.

When downloading files from the vue official website, you will find two types: vue.min.js and vue.js

What is the difference between vue.min.js and vue.js

##vue.js is the development version, vue.min.js is the production version.

vue.js development version, including helpful command line warnings.

vue.min.js production environment version, optimized for size and speed.

vue.js is a complete uncompressed file. The file is relatively large. It is generally used for reading and learning source code or modifying source code. It is generally not used for online projects.

vue.min.js is compressed. The compressed function is exactly the same as the uncompressed one. It just deletes the blank characters, comments, blank lines and other content that has nothing to do with logic, and performs some optimizations. . This version is generally used for website reference, reducing file size, reducing website traffic, improving access speed, etc.

If it is a project under development, you can use vue.js; if it is an online project, you can use vue.min.js.

Extended information:

As the preferred entry-level framework for front-end developers, Vue has many advantages:

  • Vue.js Component development can be carried out, which greatly reduces the amount of code writing and makes it easier for readers to understand.

  • The most prominent advantage of Vue.js is that it can perform two-way binding of data (we will obviously feel the convenience of this feature in subsequent writing).

  • The interface effect written using Vue.js itself is responsive, which enables the web page to display very beautiful effects on various devices.

  • Compared with traditional pages that use hyperlinks to switch and jump pages, Vue uses routing without refreshing the page.

Related recommendations: "

vue.js Tutorial"

The above is the detailed content of What is the difference between vue.min.js and vue.js. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn