Vite2+Vue3 initialization project

Build command

vite Chinese document

Specific construction

npm init @vitejs/app
npm install
npm run dev

Insert picture description here

Pack and go online

First create a vite.config.jsfile in the root directory of the folder
Write

module.exports = {
    
    
    base: './'
};

carried out

npm run build

distUpload the files in the folder to the server

Guess you like

Origin blog.csdn.net/AK852369/article/details/111308953