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

Teach you how to install mysql database on Mac

Download MySQL for Mac: https://downloads.mysql.c...

Docker installation and configuration steps for Redis image

Table of contents Preface environment Install Cre...

Linux kernel device driver Linux kernel basic notes summary

1. Linux kernel driver module mechanism Static lo...

MySQL download and installation details graphic tutorial

1. To download the MySQL database, visit the offi...

Zabbix monitors Linux hosts based on snmp

Preface: The Linux host is relatively easy to han...

Vue close browser logout implementation example

Table of contents 1. beforeunload event 2. Unload...

How InnoDB implements serialization isolation level

Serialization implementation InnoDB implements se...

JavaScript gets the scroll bar position and slides the page to the anchor point

Preface This article records a problem I encounte...

Graphical explanation of the solutions for front-end processing of small icons

Preface Before starting this article, let’s do a ...

Learn more about the most commonly used JavaScript events

Table of contents JavaScript events: Commonly use...

How to install Windows Server 2008 R2 on Dell R720 server

Note: All pictures in this article are collected ...

Basic principles of MySQL scalable design

Table of contents Preface 1. What is scalability?...

MySQL master-slave principle and configuration details

MySQL master-slave configuration and principle, f...