Using Vue3 (Part 1) Creating a Vue CLI Project

Using Vue3 (Part 1) Creating a Vue CLI Project

1. Official Documentation

Vue3 Documentation - vuejs
https://www.vue3js.cn/docs/zh/

Vue core function: data binding

Vue CLI Documentation
https://cli.vuejs.org/zh/guide/

Vue CLI = Vue.js + a bunch of components

2. Create a Vue CLI project

1. Install Vue CLI

Taobao mirror

SQL:

npm get registry -- Display the current mirror URL npm config set registry http://registry.npm.taobao.org -- Use Taobao's mirror URL

Install Vue CLI

CSS:

npm install -g @vue/[email protected]

2. Create a web application

SQL:

vue create web

3. Start the web application

Free command line startup. Drag to the right and double-click

3. Vue CLI project structure explanation

index.html , main.ts , app.vue
Reference method of two static resource files: public and assets

  • public does not participate in packaging
  • assets will be packaged

index.html introduces external static files using <%= BASE_URL %>
The .gitignore file in the sub-file will take effect, and the file rules configured in it are relative to the location of the current gitingore file
README.md is only valid in the root directory
package.json is similar to pom.xml
eslintrc.js
is a double-edged sword
Vue CLI needs to be compiled before it can be released

This is the end of this article about using Vue3 to create a Vue CLI project. For more relevant Vue3 to create a Vue CLI project content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to use Tencent slider verification code in Vue3+Vue-cli4 project
  • Vue3.0 CLI - 3.2 Routing Basic Tutorial
  • vue3.0 CLI - 2.5 - Understanding the three dimensions of components
  • vue3.0 CLI - 2.4 - Learn forms in the new component Forms.vue
  • Vue3 Vue CLI multi-environment configuration

<<:  Detailed tutorial on installing Docker and docker-compose suite on Windows

>>:  Solve the problem of MySQL using not in to include null values

Recommend

MySQL MyISAM default storage engine implementation principle

By default, the MyISAM table will generate three ...

How to configure anti-hotlinking for nginx website service (recommended)

1. Principle of Hotlinking 1.1 Web page preparati...

Detailed explanation of Navicat's slow remote connection to MySQL

The final solution is in the last picture If you ...

How to operate Docker and images

Find mirror We can search for images from the Doc...

border-radius method to add rounded borders to elements

border-radius:10px; /* All corners are rounded wi...

How to monitor array changes in Vue

Table of contents Preface Source code Where do I ...

Example of implementing circular progress bar in Vue

Data display has always been a demand that all wa...

Linux system dual network card binding configuration implementation

System version [root@ ~]# cat /etc/redhat-release...

VUE+SpringBoot implements paging function

This article mainly introduces how to implement a...

Automatic file synchronization between two Linux servers

When server B (172.17.166.11) is powered on or re...

MySQL insert json problem

MySQL 5.7.8 and later began to support a native J...

CSS syntax for table borders

<br /> CSS syntax for table borders The spec...